00001 #ifndef FLASHFONTOBJ_H 00002 #define FLASHFONTOBJ_H 00003 00004 #include "FShape.h" 00005 #include <iostream> 00006 00007 class FlashFontFactory 00008 { 00009 public: 00010 FlashFontFactory() {} 00011 00012 bool GetGlyphShape(const char *fontname, UWORD charindex, FlashShape& s,bool bold = false, bool italic = false, bool uLine = false); 00013 int GetGlyphAdvance(const char *fontname, UWORD charindex, int pointsize); 00014 00015 UWORD WriteText(std::ostream &out, const char *fontname, const char *text, int x, int y, FlashRGB color, int pointsize, int depth, int extraspacing = 0, bool bold = false, bool italic = false, bool uLine = false); 00016 UWORD WriteText(std::ostream &out, const char *fontname, const char *text, int x, int y, FlashRGB color, int pointsize, int depth, FlashRect& textBounds, int extraspacing = 0, bool bold =false ,bool italic = false,bool uLine = false); 00017 00018 }; 00019 00020 #endif