diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-12-24 12:57:42 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-12-24 12:57:42 +0000 |
commit | 56b6970c92fb430790581ee8469a77592f263f3b (patch) | |
tree | c9135b9af8e4e1b9825056c9c869998d159d7bd3 | |
parent | 135a11db35be06763e4b889984b421dcbddca3ee (diff) | |
download | netsurf-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
-rwxr-xr-x | amiga/gui.c | 10 |
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...")); |