Use system fonts as fallback and improve system font handling.
Add support for font weight and stretch selection when using system fonts. Add function to get system fallback font from a font name, style, text, and language code. Implement system font support for Android. Use system fonts as a last resort fallback.
This commit is contained in:
@@ -9,6 +9,11 @@
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
<methods>
|
||||
<method name="_cleanup" qualifiers="virtual">
|
||||
<return type="void" />
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="_create_font" qualifiers="virtual">
|
||||
<return type="RID" />
|
||||
<description>
|
||||
@@ -306,6 +311,12 @@
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="_font_get_stretch" qualifiers="virtual const">
|
||||
<return type="int" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="_font_get_style" qualifiers="virtual const">
|
||||
<return type="int" enum="TextServer.FontStyle" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
@@ -379,6 +390,12 @@
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="_font_get_weight" qualifiers="virtual const">
|
||||
<return type="int" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="_font_has_char" qualifiers="virtual const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
@@ -386,6 +403,12 @@
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="_font_is_allow_system_fallback" qualifiers="virtual const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="_font_is_force_autohinter" qualifiers="virtual const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
@@ -474,6 +497,13 @@
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="_font_set_allow_system_fallback" qualifiers="virtual">
|
||||
<return type="void" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
<param index="1" name="allow_system_fallback" type="bool" />
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="_font_set_antialiasing" qualifiers="virtual">
|
||||
<return type="void" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
@@ -680,6 +710,13 @@
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="_font_set_stretch" qualifiers="virtual">
|
||||
<return type="void" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
<param index="1" name="stretch" type="int" />
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="_font_set_style" qualifiers="virtual">
|
||||
<return type="void" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
@@ -749,6 +786,13 @@
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="_font_set_weight" qualifiers="virtual">
|
||||
<return type="void" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
<param index="1" name="weight" type="int" />
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="_font_supported_feature_list" qualifiers="virtual const">
|
||||
<return type="Dictionary" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
|
||||
Reference in New Issue
Block a user