22 #ifndef ASYLUM_SYSTEM_TEXT_H 23 #define ASYLUM_SYSTEM_TEXT_H 25 #include "common/ptr.h" 26 #include "common/rect.h" 27 #include "common/scummsys.h" 28 #include "graphics/font.h" 30 #include "asylum/shared.h" 35 class GraphicResource;
49 ResourceId loadFont(ResourceId resourceId);
52 int16 getWidth(
const char *text);
53 int16 getWidth(
const char *text, int16 length);
54 int16 getWidth(ResourceId resourceId);
55 char *
get(ResourceId resourceId);
57 void drawASCII(
char character) { drawChar(character); }
58 void draw(
const char *text);
60 void draw(ResourceId resourceId);
62 void draw(
const char *text, ResourceId fontResourceId, int16 y);
63 void draw(
const char *text, int16 length);
64 int16 draw(TextCentering centering,
const Common::Point &point, int16 spacing, int16 width,
const char *text);
66 int16 draw(int16 a1, int16 a2, TextCentering centering,
const Common::Point &point, int16 spacing, int16 width,
const char *text);
68 void drawCentered(
const Common::Point &point, int16 width,
const char *text);
69 void drawCentered(
const Common::Point &point, int16 width, ResourceId resourceId);
70 void drawCentered(
const Common::Point &point, int16 width, int16 length,
const char *text);
72 void setTransTableNum(uint32 val) { _transTableNum = val; }
75 int16 getWidth(
char c);
76 void drawChar(
char character);
79 void loadChineseFont();
85 uint32 _transTableNum;
91 bool _chineseFontLoadAttempted;
96 #endif // ASYLUM_SYSTEM_TEXT_H
Definition: graphics.h:58