Minor; simplify example code
authorKhaled Hosny <khaledhosny@eglug.org>
Sat, 20 Oct 2018 14:45:24 +0000 (15:45 +0100)
committerKhaled Hosny <khaledhosny@eglug.org>
Tue, 30 Oct 2018 17:14:57 +0000 (19:14 +0200)
Co-Authored-By: n8willis <nwillis@glyphography.com>
docs/usermanual-getting-started.xml

index 72a3746..69f92db 100644 (file)
       </listitem>
     </orderedlist>
     <programlisting language="C">
-      hb_buffer_guess_segment_properties(buf);
+      hb_buffer_set_direction(buf, HB_DIRECTION_LTR);
+      hb_buffer_set_script(buf, HB_SCRIPT_LATIN);
+      hb_buffer_set_language(buf, hb_language_from_string("en", -1));
     </programlisting>
     <orderedlist numeration="arabic">
       <listitem override="3">