Commit 4cc1c806 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(ftfont_shape): Return Lispy number.

parent 1f344760
...@@ -1618,7 +1618,7 @@ ftfont_shape (lgstring) ...@@ -1618,7 +1618,7 @@ ftfont_shape (lgstring)
CHECK_FONT_GET_OBJECT (LGSTRING_FONT (lgstring), font); CHECK_FONT_GET_OBJECT (LGSTRING_FONT (lgstring), font);
ftfont_info = (struct ftfont_info *) font; ftfont_info = (struct ftfont_info *) font;
if (! ftfont_info->maybe_otf) if (! ftfont_info->maybe_otf)
return 0; return make_number (0);
if (! ftfont_info->otf) if (! ftfont_info->otf)
{ {
OTF *otf = OTF_open_ft_face (ftfont_info->ft_size->face); OTF *otf = OTF_open_ft_face (ftfont_info->ft_size->face);
...@@ -1628,7 +1628,7 @@ ftfont_shape (lgstring) ...@@ -1628,7 +1628,7 @@ ftfont_shape (lgstring)
if (otf) if (otf)
OTF_close (otf); OTF_close (otf);
ftfont_info->maybe_otf = 0; ftfont_info->maybe_otf = 0;
return 0; return make_number (0);
} }
ftfont_info->otf = otf; ftfont_info->otf = otf;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment