Help noobs who don't know their segment properties

This commit is contained in:
Rod S 2023-05-08 20:29:35 -07:00 committed by Behdad Esfahbod
parent b7a8d23bc8
commit 4bbcff2c5c

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">