You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Add font import flag to toggle modulation of colored glyphs.
This commit is contained in:
@@ -634,6 +634,9 @@
|
||||
<member name="keep_rounding_remainders" type="bool" setter="set_keep_rounding_remainders" getter="get_keep_rounding_remainders" default="true">
|
||||
If set to [code]true[/code], when aligning glyphs to the pixel boundaries rounding remainders are accumulated to ensure more uniform glyph distribution. This setting has no effect if subpixel positioning is enabled.
|
||||
</member>
|
||||
<member name="modulate_color_glyphs" type="bool" setter="set_modulate_color_glyphs" getter="is_modulate_color_glyphs" default="false">
|
||||
If set to [code]true[/code], color modulation is applied when drawing colored glyphs, otherwise it's applied to the monochrome glyphs only.
|
||||
</member>
|
||||
<member name="msdf_pixel_range" type="int" setter="set_msdf_pixel_range" getter="get_msdf_pixel_range" default="16">
|
||||
The width of the range around the shape between the minimum and maximum representable signed distance. If using font outlines, [member msdf_pixel_range] must be set to at least [i]twice[/i] the size of the largest font outline. The default [member msdf_pixel_range] value of [code]16[/code] allows outline sizes up to [code]8[/code] to look correct.
|
||||
</member>
|
||||
|
||||
@@ -50,6 +50,9 @@
|
||||
<member name="language_support" type="Dictionary" setter="" getter="" default="{}">
|
||||
Override the list of languages supported by this font. If left empty, this is supplied by the font metadata. There is usually no need to change this. See also [member script_support].
|
||||
</member>
|
||||
<member name="modulate_color_glyphs" type="bool" setter="" getter="" default="false">
|
||||
If set to [code]true[/code], color modulation is applied when drawing colored glyphs, otherwise it's applied to the monochrome glyphs only.
|
||||
</member>
|
||||
<member name="msdf_pixel_range" type="int" setter="" getter="" default="8">
|
||||
The width of the range around the shape between the minimum and maximum representable signed distance. If using font outlines, [member msdf_pixel_range] must be set to at least [i]twice[/i] the size of the largest font outline. The default [member msdf_pixel_range] value of [code]8[/code] allows outline sizes up to [code]4[/code] to look correct.
|
||||
</member>
|
||||
|
||||
@@ -46,6 +46,9 @@
|
||||
<member name="keep_rounding_remainders" type="bool" setter="set_keep_rounding_remainders" getter="get_keep_rounding_remainders" default="true">
|
||||
If set to [code]true[/code], when aligning glyphs to the pixel boundaries rounding remainders are accumulated to ensure more uniform glyph distribution. This setting has no effect if subpixel positioning is enabled.
|
||||
</member>
|
||||
<member name="modulate_color_glyphs" type="bool" setter="set_modulate_color_glyphs" getter="is_modulate_color_glyphs" default="false">
|
||||
If set to [code]true[/code], color modulation is applied when drawing colored glyphs, otherwise it's applied to the monochrome glyphs only.
|
||||
</member>
|
||||
<member name="msdf_pixel_range" type="int" setter="set_msdf_pixel_range" getter="get_msdf_pixel_range" default="16">
|
||||
The width of the range around the shape between the minimum and maximum representable signed distance. If using font outlines, [member msdf_pixel_range] must be set to at least [i]twice[/i] the size of the largest font outline. The default [member msdf_pixel_range] value of [code]16[/code] allows outline sizes up to [code]8[/code] to look correct.
|
||||
</member>
|
||||
|
||||
@@ -571,6 +571,13 @@
|
||||
Returns [code]true[/code], if font supports given language ([url=https://en.wikipedia.org/wiki/ISO_639-1]ISO 639[/url] code).
|
||||
</description>
|
||||
</method>
|
||||
<method name="font_is_modulate_color_glyphs" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
<description>
|
||||
Returns [code]true[/code], if color modulation is applied when drawing colored glyphs.
|
||||
</description>
|
||||
</method>
|
||||
<method name="font_is_multichannel_signed_distance_field" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
@@ -858,6 +865,14 @@
|
||||
Adds override for [method font_is_language_supported].
|
||||
</description>
|
||||
</method>
|
||||
<method name="font_set_modulate_color_glyphs">
|
||||
<return type="void" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
<param index="1" name="force_autohinter" type="bool" />
|
||||
<description>
|
||||
If set to [code]true[/code], color modulation is applied when drawing colored glyphs, otherwise it's applied to the monochrome glyphs only.
|
||||
</description>
|
||||
</method>
|
||||
<method name="font_set_msdf_pixel_range">
|
||||
<return type="void" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
|
||||
@@ -617,6 +617,14 @@
|
||||
Returns [code]true[/code], if font supports given language ([url=https://en.wikipedia.org/wiki/ISO_639-1]ISO 639[/url] code).
|
||||
</description>
|
||||
</method>
|
||||
<method name="_font_is_modulate_color_glyphs" qualifiers="virtual const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
<description>
|
||||
[b]Optional.[/b]
|
||||
Returns [code]true[/code], if color modulation is applied when drawing colored glyphs.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_font_is_multichannel_signed_distance_field" qualifiers="virtual const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
@@ -942,6 +950,15 @@
|
||||
Adds override for [method _font_is_language_supported].
|
||||
</description>
|
||||
</method>
|
||||
<method name="_font_set_modulate_color_glyphs" qualifiers="virtual">
|
||||
<return type="void" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
<param index="1" name="modulate" type="bool" />
|
||||
<description>
|
||||
[b]Optional.[/b]
|
||||
If set to [code]true[/code], color modulation is applied when drawing colored glyphs, otherwise it's applied to the monochrome glyphs only.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_font_set_msdf_pixel_range" qualifiers="virtual">
|
||||
<return type="void" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
|
||||
Reference in New Issue
Block a user