diff options
author | Graeme Geldenhuys <graemeg@gmail.com> | 2013-03-27 16:40:37 +0000 |
---|---|---|
committer | Graeme Geldenhuys <graemeg@gmail.com> | 2013-03-27 16:40:37 +0000 |
commit | 255e943caa0d000f43f98442297f55413fa816ed (patch) | |
tree | 495895e534e229f14ecbc3c02749cba64e2d9d2d /src/corelib | |
parent | d63ff2a15fd9f72fad3dc11e7653e31fc78a841a (diff) | |
download | fpGUI-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.pas | 6 |
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; |