Update harfbuzz font when size of font is changed
This commit is contained in:
parent
b0663c1a3c
commit
657d0c4e2d
@ -74,6 +74,7 @@ set_font_size(Face *self, FT_F26Dot6 char_width, FT_F26Dot6 char_height, FT_UInt
|
|||||||
int error = FT_Set_Char_Size(self->face, char_width, char_height, xdpi, ydpi);
|
int error = FT_Set_Char_Size(self->face, char_width, char_height, xdpi, ydpi);
|
||||||
if (!error) {
|
if (!error) {
|
||||||
self->char_width = char_width; self->char_height = char_height; self->xdpi = xdpi; self->ydpi = ydpi;
|
self->char_width = char_width; self->char_height = char_height; self->xdpi = xdpi; self->ydpi = ydpi;
|
||||||
|
if (self->harfbuzz_font) hb_ft_font_changed(self->harfbuzz_font);
|
||||||
} else {
|
} else {
|
||||||
set_freetype_error("Failed to set char size, with error:", error); return false;
|
set_freetype_error("Failed to set char size, with error:", error); return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user