* util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
This commit is contained in:
parent
30aff4cb3a
commit
5cf86f4b0f
2 changed files with 6 additions and 1 deletions
|
@ -1170,7 +1170,8 @@ main (int argc, char *argv[])
|
|||
font_info.style = ft_face->style_flags;
|
||||
font_info.size = size;
|
||||
|
||||
FT_Set_Pixel_Sizes (ft_face, size, size);
|
||||
if (FT_Set_Pixel_Sizes (ft_face, size, size))
|
||||
grub_util_error ("can't set %dx%d font size", size, size);
|
||||
add_font (&font_info, ft_face, file_format != PF2);
|
||||
FT_Done_Face (ft_face);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue