Skip to content

A class for simply read glyphs out of svg fonts (for example icon fonts)

Notifications You must be signed in to change notification settings

blacksunshineCoding/svgFontReader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

svgFontReader

About

with svgFontReader you can easy read out the glyphs of a svgFont. Especially for icon-fonts this showed up to be very useful

Usage

use of the class as followed

include 'svgFontReader.class.php';
$svgFontReader = new svgFontReader; // initiate the class
$svg = dirname(__FILE__) . '/font-icons.svg'; // define the svg font-file
$glyphsAll = $svgFontReader->getGlyphs($svg); // get glyphs as array
$glyphsList = $svgFontReader->listGlyphs($svg); //get glyphs as comma separated list

some rules you have to follow:

  • charset must be unicode/utf8
  • you have to include the font in css
  • for the relevant area you have to define the font-family

Timeline

  • 23/07/2015: testrun with bootstraps glyphicons done
  • 23/07/2015: some glyphs which actually arent glyphs in the font but other attributes are now sorted out

About

A class for simply read glyphs out of svg fonts (for example icon fonts)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages