
SWF::Builder::Character::Font - SWF font object

my $font = $mc->new_font('c:/windows/font/arial.ttf');
$font->add_glyph('0123456789');

This module creates SWF fonts from TrueType fonts.
returns a new font. $fontfile is a font file name. It should be a TrueType font file (ttf/ttc). Optional $fontname is a font name referred by HTMLs in dynamic texts. The font name is taken from the TrueType file if not defined.
sets/gets a flag to embed the font or not.
gets a permission flag to use the font only 'preview & print'. If the flag is set, the font cannot be used for text field.
gets the average character width.
adds glyph data of the characters of the string to the font. Usually, SWF::Builder::character::Text adds required glyph data automatically. It is necessary to do add_glyph if the font is used for a dynamic text or a text field which will be changed at playing time. if $e_char is present, add_glyph adds glyphs of characters from first character of $char_string to first character of $e_char. For example, $font->add_glyph('a', 'z') adds glyphs of all lower case alphabet.
sets the spoken language of texts to which the font is applied. $code can take 'none', 'Latin', 'Japanese', 'Korean', 'Simplified Chinese', and 'Traditional Chinese'. It can also take a number, 0, 1, 2, 3, 4, and 5, or an initial, 'n', 'L', 'J', 'K', 'S'(or 'C'), and 'T', respectively.

Copyright 2003 Yasuhiro Sasama (ySas), <ysas@nmt.ne.jp>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.