summaryrefslogtreecommitdiff
path: root/amiga/gui.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2011-12-24 12:57:42 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2011-12-24 12:57:42 +0000
commit56b6970c92fb430790581ee8469a77592f263f3b (patch)
treec9135b9af8e4e1b9825056c9c869998d159d7bd3 /amiga/gui.c
parent135a11db35be06763e4b889984b421dcbddca3ee (diff)
downloadnetsurf-56b6970c92fb430790581ee8469a77592f263f3b.tar.gz
netsurf-56b6970c92fb430790581ee8469a77592f263f3b.tar.bz2
Search for DejaVu Serif Italic before DejaVu Serif Oblique, this fixes the fonts used
on the splash screen if newer DejaVu fonts have been installed and the old ones removed. svn path=/trunk/netsurf/; revision=13342
Diffstat (limited to 'amiga/gui.c')
-rwxr-xr-xamiga/gui.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index a0f99c2a1..4cbb90f86 100755
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -3994,13 +3994,21 @@ Object *ami_gui_splash_open(void)
SetRPAttrs(win->RPort, RPTAG_APenColor, 0x003F6DFE, TAG_DONE);
SetDrMd(win->RPort, JAM1);
- tattr.ta_Name = "DejaVu Serif Oblique.font";
+ tattr.ta_Name = "DejaVu Serif Italic.font";
tattr.ta_YSize = 24;
tattr.ta_Style = 0;
tattr.ta_Flags = 0;
if(tfont = ami_font_open_disk_font(&tattr))
+ {
SetFont(win->RPort, tfont);
+ }
+ else
+ {
+ tattr.ta_Name = "DejaVu Serif Oblique.font";
+ if(tfont = ami_font_open_disk_font(&tattr))
+ SetFont(win->RPort, tfont);
+ }
Move(win->RPort, left + 5, top + 25);
Text(win->RPort, "Initialising...", strlen("Initialising..."));