summaryrefslogtreecommitdiff
path: root/src/corelib/render
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2012-03-12 19:31:36 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2012-03-12 19:31:36 +0200
commit0c81d98bef31f6a9e96f7af8c3e9e3db7173487d (patch)
treef5016378cb5b3269a1540af82f5a825d003d668e /src/corelib/render
parent70459824c2533ff56be97679822c9c8f69771cfa (diff)
downloadfpGUI-0c81d98bef31f6a9e96f7af8c3e9e3db7173487d.tar.xz
agg: TextHint will now update the font engine.
Before, you had to set TextHints() *before* you loaded a font. Now you can set the TextHint at any time.
Diffstat (limited to 'src/corelib/render')
-rw-r--r--src/corelib/render/software/Agg2D.pas4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/render/software/Agg2D.pas b/src/corelib/render/software/Agg2D.pas
index b10f5d81..be71dd13 100644
--- a/src/corelib/render/software/Agg2D.pas
+++ b/src/corelib/render/software/Agg2D.pas
@@ -2568,7 +2568,9 @@ end;
procedure TAgg2D.TextHints(hints : boolean );
begin
m_textHints:=hints;
-
+ {$IFNDEF AGG2D_NO_FONT}
+ m_fontEngine.hinting_(m_textHints );
+ {$ENDIF}
end;
{ TEXTWIDTH }