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,
53 kMacFontSanFrancisco = 8,
55 kMacFontLosAngeles = 12,
56 kMacFontPalatino = 16,
58 kMacFontHelvetica = 21,
67 kMacFontUnderline = 4,
70 kMacFontCondense = 32,
78 Common::CodePage encoding;
82 FontInfo() : lang(Common::UNK_LANG), encoding(Common::kCodePageInvalid), aliasForId(-1) {}
87 MacFont(
int id = kMacFontChicago,
int size = 12,
int slant = kMacFontRegular) {
89 _size = size ? size : 12;
91 _fallback =
FontMan.getFontByUsage(Graphics::FontManager::kBigGUIFont);
98 int getId()
const {
return _id; };
99 void setId(
int id) { _id = id; }
100 int getSize()
const {
return _size; }
101 int getSlant()
const {
return _slant; }
104 void setName(
const char *name);
106 bool isGenerated()
const {
return _generated; }
107 void setGenerated(
bool gen) { _generated = gen; }
108 bool isTrueType()
const {
return _truetype; }
109 Font *getFont()
const {
return _font; }
110 void setFont(
Font *font,
bool truetype) { _font = font; _truetype = truetype; }
132 void setLocalizedFonts();
154 const Common::String getFontName(uint16
id,
int size,
int slant = kMacFontRegular,
bool tryGen =
false);
159 Common::CodePage getFontEncoding(uint16
id);
160 int getFontAliasForId(uint16
id);
175 void forceBuiltinFonts() { _builtInFonts =
true; }
180 void printFontRegistry(
int debugLevel, uint32 channel);
184 int getFamilyId(
int newId,
int newSlant);
189 void loadJapaneseFonts();
191 void generateFontSubstitute(
MacFont &macFont);
200 bool _japaneseFontsLoaded;
Definition: macresman.h:125
Definition: macfontmanager.h:127
#define FontMan
Definition: fontman.h:127
Definition: macfont.h:165
Definition: macfontmanager.h:36
Definition: macfontmanager.h:76
Definition: algorithm.h:29
Definition: formatinfo.h:28
Definition: macfontmanager.h:85
bool hasBuiltInFonts()
Definition: macfontmanager.h:138
Language
Definition: language.h:45