home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / flash078.zip / flashsource-r0_7_8.zip / FlashFontObj.h < prev    next >
C/C++ Source or Header  |  2001-07-16  |  843b  |  21 lines

  1. #ifndef FLASHFONTOBJ_H
  2. #define FLASHFONTOBJ_H
  3.  
  4. #include "FShape.h"
  5. #include <iostream>
  6.  
  7. class FlashFontFactory
  8. {
  9. public:
  10.     FlashFontFactory() {}
  11.  
  12.     bool GetGlyphShape(const char *fontname, UWORD charindex, FlashShape& s,bool bold = false, bool italic = false, bool uLine = false);
  13.     int GetGlyphAdvance(const char *fontname, UWORD charindex, int pointsize);
  14.     
  15.     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);
  16.     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);
  17.  
  18. };
  19.  
  20. #endif
  21.