Help noobs who don't know their segment properties

This commit is contained in:
Rod S authored and Behdad Esfahbod committed 2023-05-08 21:33:13 -06:00
1 parent b7a8d23bc8
commit 4bbcff2c5c
1 file changed
+4
+4
View File
@@ -229,9 +229,13 @@
</listitem>
</orderedlist>
<programlisting language="C">
// If you know the direction, script, and language
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));
// If you don't know the direction, script, and language
hb_buffer_guess_segment_properties(buffer);
</programlisting>
<orderedlist numeration="arabic">
<listitem override="3">