aboutsummaryrefslogtreecommitdiffstats
path: root/src/base/TextGL.pas
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-10-17 17:00:23 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-10-17 17:00:23 +0000
commit436a345829df41121d9edd8141c9e77eb701b855 (patch)
tree45122ea9f1fb1149e45ed74ec49ab204c3ab0b78 /src/base/TextGL.pas
parent7ec7682216837a903f9cc18f69a081781c55f5af (diff)
downloadusdx-436a345829df41121d9edd8141c9e77eb701b855.tar.gz
usdx-436a345829df41121d9edd8141c9e77eb701b855.tar.xz
usdx-436a345829df41121d9edd8141c9e77eb701b855.zip
add pre-cache option at font-creation to preload a glyph base set
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2675 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/base/TextGL.pas')
-rw-r--r--src/base/TextGL.pas4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/TextGL.pas b/src/base/TextGL.pas
index c354a500..feca0974 100644
--- a/src/base/TextGL.pas
+++ b/src/base/TextGL.pas
@@ -149,7 +149,7 @@ begin
if (Outline > 0.0) then
begin
// outlined font
- OutlineFont := TFTScalableOutlineFont.Create(FontFile, 64, Outline);
+ OutlineFont := TFTScalableOutlineFont.Create(FontFile, 64, Outline, True, True);
OutlineFont.SetOutlineColor(
FontIni.ReadFloat(SectionName, 'OutlineColorR', 0.0),
FontIni.ReadFloat(SectionName, 'OutlineColorG', 0.0),
@@ -163,7 +163,7 @@ begin
begin
// normal font
Embolden := FontIni.ReadFloat(SectionName, 'Embolden', 0.0);
- Fonts[I].Font := TFTScalableFont.Create(FontFile, 64, Embolden);
+ Fonts[I].Font := TFTScalableFont.Create(FontFile, 64, Embolden, True, True);
Fonts[I].Outlined := false;
end;