Hi list,
I wanted to embedd bold/itac fonts from a TTF file which has multiple faces (plain/bold/italic/bold-italic) together. And I wanted to show a text in Italic, but the swf file produced by the swfmill 0.2.12 always show the text in Plain style fonts. I looked at the souce code: src/swft/swft_import_ttf.cpp and found a interesting portion. ======================================================================= void importDefineFont2( DefineFont2 *tag, const char *filename, const char *fontname, const xmlChar *glyphs_xml, Context *ctx, swft_ctx *swftctx, int offset ) { FT_Library swfft_library; FT_Face face; .... error = FT_New_Face( swfft_library, filename, 0, &face ); .... if( face->num_faces > 1 ) { fprintf( stderr, "WARNING: %s contains %i faces, but only the first is imported.\n", filename, face->num_faces ); } .... ======================================================================= The message seems implying that the swfmill will import only 1 TypeFace (Plain) from a TTF file even if the given TTF file has other faces (Bold/Italic). Am I right? I think it would be nice if the swfmill let me specify the typeface in the movie XML, for example: <font id="MSGOTHIC" import="C:\WINNT\Fonts\MSGOTHIC.TTC" glyphs="012345" typeface="It"/> <!-- "Bd","It","BdIt" these appreviations are based on TrueType Specification, Chapter 2, PCLT, TypeFace --> Is this an OK idea? MATSUHASHI,kazuaki QUICK Corp, Japan _______________________________________________ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org