From d3d0f15f7d20bedf7018fb2fb652f92ff4159bd7 Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Wed, 28 Nov 2018 13:46:12 -0800 Subject: update simple shaping example (closes #298) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit add call to `FT_Set_Char_Size`, otherwise default size remains at `0`, and glyph positions come back as `0` too --- docs/usermanual-getting-started.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/usermanual-getting-started.xml b/docs/usermanual-getting-started.xml index 9e16ecbf..932bd947 100644 --- a/docs/usermanual-getting-started.xml +++ b/docs/usermanual-getting-started.xml @@ -157,7 +157,8 @@ #include <hb-ft.h> - FT_New_Face(ft_library, font_path, index, &face) + FT_New_Face(ft_library, font_path, index, &face); + FT_Set_Char_Size(face, 0, 1000, 0, 0); hb_font_t *font = hb_ft_font_create(face); -- cgit v1.2.3