mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 12:36:51 +03:00
If a designed font is defined but not available, error out
svn path=/trunk/netsurf/; revision=12265
This commit is contained in:
parent
11a0284427
commit
56482725b6
@ -404,6 +404,7 @@ struct OutlineFont *ami_open_outline_font(const plot_font_style_t *fstyle, BOOL
|
||||
if(node->italic)
|
||||
{
|
||||
node = ami_font_open(node->italic);
|
||||
if(!node) return NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -416,6 +417,7 @@ struct OutlineFont *ami_open_outline_font(const plot_font_style_t *fstyle, BOOL
|
||||
if(node->bold)
|
||||
{
|
||||
node = ami_font_open(node->bold);
|
||||
if(!node) return NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -428,6 +430,7 @@ struct OutlineFont *ami_open_outline_font(const plot_font_style_t *fstyle, BOOL
|
||||
if(node->bolditalic)
|
||||
{
|
||||
node = ami_font_open(node->bolditalic);
|
||||
if(!node) return NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -580,6 +583,7 @@ void ami_init_fonts(void)
|
||||
|
||||
void ami_close_fonts(void)
|
||||
{
|
||||
LOG(("Cleaning up font cache"));
|
||||
FreeObjList(ami_font_list);
|
||||
ami_font_list = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user