summaryrefslogtreecommitdiff
path: root/src/corelib
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2013-03-27 16:40:37 +0000
committerGraeme Geldenhuys <graemeg@gmail.com>2013-03-27 16:40:37 +0000
commit255e943caa0d000f43f98442297f55413fa816ed (patch)
tree495895e534e229f14ecbc3c02749cba64e2d9d2d /src/corelib
parentd63ff2a15fd9f72fad3dc11e7653e31fc78a841a (diff)
downloadfpGUI-255e943caa0d000f43f98442297f55413fa816ed.tar.xz
aggpas: Improved font work-around to work for FreeBSD too.
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/render/software/Agg2D.pas6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/corelib/render/software/Agg2D.pas b/src/corelib/render/software/Agg2D.pas
index 79940cbd..36737c2b 100644
--- a/src/corelib/render/software/Agg2D.pas
+++ b/src/corelib/render/software/Agg2D.pas
@@ -3539,7 +3539,11 @@ begin
{$IFDEF WINDOWS}
Font('Arial', 13);
{$ELSE}
- Font('/usr/share/fonts/truetype/ttf-liberation/LiberationSans-Regular.ttf', 13);
+ {$IFDEF BSD}
+ Font('/usr/local/lib/X11/fonts/Liberation/LiberationSans-Regular.ttf', 13);
+ {$ELSE}
+ Font('/usr/share/fonts/truetype/ttf-liberation/LiberationSans-Regular.ttf', 13);
+ {$ENDIF}
{$ENDIF}
end;