mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-04 21:15:06 +00:00
Help noobs who don't know their segment properties
This commit is contained in:
parent
b7a8d23bc8
commit
4bbcff2c5c
1 changed files with 4 additions and 0 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Reference in a new issue