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
This commit is contained in:
Chris Young 2011-12-24 12:57:42 +00:00
parent 135a11db35
commit 56b6970c92

View File

@ -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..."));