update simple shaping example (closes #298)
authorMatthew Butterick <mbutterick@users.noreply.github.com>
Wed, 28 Nov 2018 21:46:12 +0000 (13:46 -0800)
committerGitHub <noreply@github.com>
Wed, 28 Nov 2018 21:46:12 +0000 (13:46 -0800)
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

index 9e16ecb..932bd94 100644 (file)
     </orderedlist>
     <programlisting language="C">
       #include &lt;hb-ft.h&gt;
-      FT_New_Face(ft_library, font_path, index, &amp;face)
+      FT_New_Face(ft_library, font_path, index, &amp;face);
+      FT_Set_Char_Size(face, 0, 1000, 0, 0);
       hb_font_t *font = hb_ft_font_create(face);
     </programlisting>
     <orderedlist numeration="arabic">