From 436a345829df41121d9edd8141c9e77eb701b855 Mon Sep 17 00:00:00 2001 From: tobigun Date: Sun, 17 Oct 2010 17:00:23 +0000 Subject: 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 --- src/base/TextGL.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/base/TextGL.pas') 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; -- cgit v1.2.3