* util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
fails.
This commit is contained in:
parent
8d179dae4e
commit
30fd7198fe
2 changed files with 12 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
|
||||
fails.
|
||||
|
||||
2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
|
||||
|
||||
* docs/autoiso.cfg: New file.
|
||||
|
|
|
@ -1221,9 +1221,13 @@ main (int argc, char *argv[])
|
|||
arguments.font_info.style = ft_face->style_flags;
|
||||
arguments.font_info.size = size;
|
||||
|
||||
if (FT_Set_Pixel_Sizes (ft_face, size, size))
|
||||
grub_util_error (_("can't set %dx%d font size"),
|
||||
size, size);
|
||||
err = FT_Set_Pixel_Sizes (ft_face, size, size);
|
||||
|
||||
if (err)
|
||||
grub_util_error (_("can't set %dx%d font size: Freetype error %d: %s"),
|
||||
size, size, err,
|
||||
(err > 0 && err < (signed) ARRAY_SIZE (ft_errmsgs))
|
||||
? ft_errmsgs[err] : "");
|
||||
add_font (&arguments.font_info, ft_face, arguments.file_format != PF2);
|
||||
FT_Done_Face (ft_face);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue