[Text Server] Add support for user defined punctuation list, used for word breaking.
This commit is contained in:
parent
928c002f22
commit
daa613333e
13 changed files with 165 additions and 12 deletions
|
|
@ -911,6 +911,13 @@
|
|||
Returns shapes of the carets corresponding to the character offset [code]position[/code] in the text. Returned caret shape is 1 pixel wide rectangle.
|
||||
</description>
|
||||
</method>
|
||||
<method name="shaped_text_get_custom_punctuation" qualifiers="const">
|
||||
<return type="String" />
|
||||
<argument index="0" name="shaped" type="RID" />
|
||||
<description>
|
||||
Returns custom punctuation character list, used for word breaking. If set to empty string, server defaults are used.
|
||||
</description>
|
||||
</method>
|
||||
<method name="shaped_text_get_descent" qualifiers="const">
|
||||
<return type="float" />
|
||||
<argument index="0" name="shaped" type="RID" />
|
||||
|
|
@ -1161,6 +1168,14 @@
|
|||
Override ranges should cover full source text without overlaps. BiDi algorithm will be used on each range separately.
|
||||
</description>
|
||||
</method>
|
||||
<method name="shaped_text_set_custom_punctuation">
|
||||
<return type="void" />
|
||||
<argument index="0" name="shaped" type="RID" />
|
||||
<argument index="1" name="punct" type="String" />
|
||||
<description>
|
||||
Sets custom punctuation character list, used for word breaking. If set to empty string, server defaults are used.
|
||||
</description>
|
||||
</method>
|
||||
<method name="shaped_text_set_direction">
|
||||
<return type="void" />
|
||||
<argument index="0" name="shaped" type="RID" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue