22 #ifndef ASYLUM_SYSTEM_TEXT_H 23 #define ASYLUM_SYSTEM_TEXT_H 25 #include "common/rect.h" 26 #include "common/scummsys.h" 27 #include "graphics/font.h" 29 #include "asylum/shared.h" 34 class GraphicResource;
48 ResourceId loadFont(ResourceId resourceId);
51 int16 getWidth(
const char *text);
52 int16 getWidth(
const char *text, int16 length);
53 int16 getWidth(ResourceId resourceId);
54 char *
get(ResourceId resourceId);
56 void drawASCII(
char character) { drawChar(character); }
57 void draw(
const char *text);
59 void draw(ResourceId resourceId);
61 void draw(
const char *text, ResourceId fontResourceId, int16 y);
62 void draw(
const char *text, int16 length);
63 int16 draw(TextCentering centering,
const Common::Point &point, int16 spacing, int16 width,
const char *text);
65 int16 draw(int16 a1, int16 a2, TextCentering centering,
const Common::Point &point, int16 spacing, int16 width,
const char *text);
67 void drawCentered(
const Common::Point &point, int16 width,
const char *text);
68 void drawCentered(
const Common::Point &point, int16 width, ResourceId resourceId);
69 void drawCentered(
const Common::Point &point, int16 width, int16 length,
const char *text);
71 void setTransTableNum(uint32 val) { _transTableNum = val; }
74 int16 getWidth(
char c);
75 void drawChar(
char character);
78 void loadChineseFont();
84 uint32 _transTableNum;
90 bool _chineseFontLoadAttempted;
95 #endif // ASYLUM_SYSTEM_TEXT_H
Definition: graphics.h:58