22 #ifndef GRAPHICS_MACGUI_MACFONTMANAGER_H 23 #define GRAPHICS_MACGUI_MACFONTMANAGER_H 25 #include "common/language.h" 26 #include "graphics/fonts/bdf.h" 27 #include "graphics/fontman.h" 30 class SeekableReadStream;
45 kMacFontNonStandard = -1,
47 kMacFontApplication = 1,
55 kMacFontSanFrancisco = 8,
58 kMacFontLosAngeles = 12,
59 kMacFontZapfDingbats = 13,
61 kMacFontHelveticaNarrow = 15,
62 kMacFontPalatino = 16,
63 kMacFontZapfChancery = 18,
65 kMacFontHelvetica = 21,
68 kMacFontTaliesin = 24,
69 kMacFontAvantGarde = 33,
70 kMacFontNewCenturySchoolbook = 34,
71 kMacFontChicago = 16383,
73 kMacFontOsaka = 16384,
74 kMacFontBookMinchoM = 16396,
75 kMacFontMonoGothic = 16433,
76 kMacFontMonoMing = 16435,
77 kMacFontOsakaMono = 16436,
78 kMacFontMediumGothic = 16640,
80 kMacFontHeiseiMincho = 16700,
81 kMacFontHeiseiKakuGothic = 16701
88 kMacFontUnderline = 4,
91 kMacFontCondense = 32,
99 Common::CodePage encoding;
103 FontInfo() : lang(Common::UNK_LANG), encoding(Common::kCodePageInvalid), aliasForId(-1) {}
108 MacFont(
int id = kMacFontSystem,
int size = 12,
int slant = kMacFontRegular) {
110 _size = size ? size : 12;
112 _fallback =
FontMan.getFontByUsage(Graphics::FontManager::kBigGUIFont);
119 int getId()
const {
return _id; };
120 void setId(
int id) { _id = id; }
121 int getSize()
const {
return _size; }
122 int getSlant()
const {
return _slant; }
125 void setName(
const char *name);
127 bool isGenerated()
const {
return _generated; }
128 void setGenerated(
bool gen) { _generated = gen; }
129 bool isTrueType()
const {
return _truetype; }
130 Font *getFont()
const {
return _font; }
131 void setFont(
Font *font,
bool truetype) { _font = font; _truetype = truetype; }
153 void setLocalizedFonts();
175 const Common::String getFontName(uint16
id,
int size,
int slant = kMacFontRegular,
bool tryGen =
false);
180 Common::CodePage getFontEncoding(uint16
id);
181 int getFontAliasForId(uint16
id);
196 void forceBuiltinFonts() { _builtInFonts =
true; }
201 void printFontRegistry(
int debugLevel, uint32 channel);
205 int getFamilyId(
int newId,
int newSlant);
210 void loadJapaneseFonts();
212 void generateFontSubstitute(
MacFont &macFont);
221 bool _japaneseFontsLoaded;
Definition: macresman.h:125
Definition: macfontmanager.h:148
#define FontMan
Definition: fontman.h:127
Definition: macfont.h:165
Definition: macfontmanager.h:36
Definition: macfontmanager.h:97
Definition: algorithm.h:29
Definition: formatinfo.h:28
Definition: macfontmanager.h:106
bool hasBuiltInFonts()
Definition: macfontmanager.h:159
Language
Definition: language.h:45