用任意文本编辑器打开游戏安装目录下 Resource\Themes\Civ4\Civ4Theme_Common.thm 文件, 搜索 >>> CYBERFRONT 找到以下文本 (在373行)
// >>> CYBERFRONT // text: font
GFont .Size1_Normal = GFont("SimSun", "Regular", 12, GFlags(GFontFeature, GFC_FONT_ALPHA));
GFont .Size2_Normal = GFont("SimSun", "Regular", 14, GFlags(GFontFeature, GFC_FONT_ALPHA));
GFont .Size2_Bold = GFont("SimSun", "Bold", 14, GFlags(GFontFeature, GFC_FONT_BOLD, GFC_FONT_ALPHA));
GFont .Size2_Italic = GFont("SimSun", "Italic", 14, GFlags(GFontFeature, GFC_FONT_ITALIC, GFC_FONT_ALPHA), 0, GRectMargin(1));
GFont .Size3_Normal = GFont("SimSun", "Regular", 16, GFlags(GFontFeature, GFC_FONT_ALPHA));
GFont .Size3_Bold = GFont("SimSun", "Bold", 16, GFlags(GFontFeature, GFC_FONT_BOLD, GFC_FONT_ALPHA));
GFont .Size4_Normal = GFont("SimSun", "Regular", 22, GFlags(GFontFeature, GFC_FONT_ALPHA));
GFont .Size4_Bold = GFont("SimSun", "Bold", 22, GFlags(GFontFeature, GFC_FONT_BOLD, GFC_FONT_ALPHA));
上面八行定义了八种字型, GFont() 函数包括字体如宋体 "SimSun", 样式如加粗 "Bold", 字号如 22, 自行修改调整即可得到适合自己的字体效果
相关文章