2017-09-12 20:42:36 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2022-03-16 22:01:02 +00:00
<class name= "DynamicFontData" inherits= "Resource" version= "3.5" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2017-09-12 20:42:36 +00:00
<brief_description >
2017-10-10 22:15:20 +00:00
Used with [DynamicFont] to describe the location of a font file.
2017-09-12 20:42:36 +00:00
</brief_description>
<description >
2017-10-10 22:15:20 +00:00
Used with [DynamicFont] to describe the location of a vector font file for dynamic rendering at runtime.
2017-09-12 20:42:36 +00:00
</description>
<tutorials >
2020-10-01 08:34:47 +00:00
<link title= "3D Voxel Demo" > https://godotengine.org/asset-library/asset/676</link>
2017-09-12 20:42:36 +00:00
</tutorials>
<methods >
</methods>
<members >
2019-06-29 10:38:01 +00:00
<member name= "antialiased" type= "bool" setter= "set_antialiased" getter= "is_antialiased" default= "true" >
2020-05-28 20:26:16 +00:00
If [code]true[/code], the font is rendered with anti-aliasing. This property applies both to the main font and its outline (if it has one).
2018-11-10 21:07:32 +00:00
</member>
2019-06-29 10:38:01 +00:00
<member name= "font_path" type= "String" setter= "set_font_path" getter= "get_font_path" default= """" >
2017-10-10 22:15:20 +00:00
The path to the vector font file.
2017-09-12 20:42:36 +00:00
</member>
2019-06-29 10:38:01 +00:00
<member name= "hinting" type= "int" setter= "set_hinting" getter= "get_hinting" enum= "DynamicFontData.Hinting" default= "2" >
2020-01-02 01:08:19 +00:00
The font hinting mode used by FreeType. See [enum Hinting] for options.
2018-03-01 21:23:18 +00:00
</member>
2021-12-08 09:19:31 +00:00
<member name= "override_oversampling" type= "float" setter= "set_override_oversampling" getter= "get_override_oversampling" default= "0.0" >
If set to a value greater than [code]0.0[/code], it will override default font oversampling, ignoring [member SceneTree.use_font_oversampling] value and viewport stretch mode.
</member>
2017-09-12 20:42:36 +00:00
</members>
<constants >
2018-03-01 21:23:18 +00:00
<constant name= "HINTING_NONE" value= "0" enum= "Hinting" >
2019-06-21 23:04:47 +00:00
Disables font hinting (smoother but less crisp).
2018-03-01 21:23:18 +00:00
</constant>
<constant name= "HINTING_LIGHT" value= "1" enum= "Hinting" >
Use the light font hinting mode.
</constant>
<constant name= "HINTING_NORMAL" value= "2" enum= "Hinting" >
Use the default font hinting mode (crisper but less smooth).
</constant>
2017-09-12 20:42:36 +00:00
</constants>
</class>