summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMatthew Butterick <mbutterick@users.noreply.github.com>2018-11-28 13:46:12 -0800
committerGitHub <noreply@github.com>2018-11-28 13:46:12 -0800
commitd3d0f15f7d20bedf7018fb2fb652f92ff4159bd7 (patch)
treea8bcd249832173f53da3c7a9cbfc57ba35312297 /docs
parent7b78d2233df0e51e2967bc54a9202b3f9e05059a (diff)
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
Diffstat (limited to 'docs')
-rw-r--r--docs/usermanual-getting-started.xml3
1 files changed, 2 insertions, 1 deletions
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 @@
</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">