[pango/wip/kill-shape-engine-win32] win32: Set scale on hb font
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/wip/kill-shape-engine-win32] win32: Set scale on hb font
- Date: Thu, 18 Jul 2019 21:05:25 +0000 (UTC)
commit 0ea406b421ebff02bd11375232ac0e2f807837dd
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jul 18 14:05:06 2019 -0700
win32: Set scale on hb font
pango/pangowin32.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/pango/pangowin32.c b/pango/pangowin32.c
index 5e782e43..1b10caed 100644
--- a/pango/pangowin32.c
+++ b/pango/pangowin32.c
@@ -1930,6 +1930,7 @@ hfont_reference_table (hb_face_t *face, hb_tag_t tag, void *user_data)
static hb_font_t *
pango_win32_font_create_hb_font (PangoFont *font)
{
+ PangoWin32Font *win32font = (PangoWin32Font *)font;
HFONT hfont;
hb_face_t *face = NULL;
hb_font_t *hb_font = NULL;
@@ -1942,7 +1943,10 @@ pango_win32_font_create_hb_font (PangoFont *font)
face = hb_face_create_for_tables (hfont_reference_table, (void *)hfont, NULL);
hb_font = hb_font_create (face);
+ hb_font_set_scale (hb_font, win32font->size, win32font->size);
hb_face_destroy (face);
+ hb_font_make_immutable (hb_font);
+
return hb_font;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]