update simple shaping example (closes #298)

add call to `FT_Set_Char_Size`, otherwise default size remains at `0`, and glyph positions come back as `0` too
This commit is contained in:
Matthew Butterick 2018-11-28 13:46:12 -08:00 committed by GitHub
parent 7b78d2233d
commit d3d0f15f7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,7 +157,8 @@
</orderedlist> </orderedlist>
<programlisting language="C"> <programlisting language="C">
#include &lt;hb-ft.h&gt; #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); hb_font_t *font = hb_ft_font_create(face);
</programlisting> </programlisting>
<orderedlist numeration="arabic"> <orderedlist numeration="arabic">