SWF::Font - SWF Font class
use SWF::Font; $font = new SWF::Font();
Font object for later usage in Text and TextField objects.
Ming 0.3's old getShape($font, $code) has been removed from interface.
For getting details of glyph information you could draw a character
into a shape and call dumpOutline()
method, just like
$sh=new SWF::Shape(); $sh->drawGlyph($font, $char_nr); print $sh->dumpOutline();
Creates a Font object. $filename selects either True-Type Font '(ttf') file or Font Definition Block ('fdb') file as written by makefdb tool.
getStringWidth($string)
Returns width of given string in pixels.
getAscent()
Returns the ascent of the current font, or 0 if not available.
getDescent()
Returns the descent of the current font, or 0 if not available.
getLeading()
Returns the leading of the current font, or 0 if not available.
getName()
Returns the name of the current font, do not confuse with font filename.
getGlyphCount()
Returns the glyph count of the current font.
developers of ming ming.sourceforge.net
SWF, SWF::BrowserFont, SWF::Text, SWF::TextField, SWF::Shape, ISO 10646 (Unicode)