mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 22:41:10 +01:00
Help noobs who don't know their segment properties
This commit is contained in:
1 parent
b7a8d23bc8
commit
4bbcff2c5c
1 file changed
+4
@@ -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">
|
||||
|
||||
Reference in new issue
Block a user