DynamicFont Properties |
The DynamicFont type exposes the following members.
Name | Description | |
---|---|---|
![]() | DynamicObject |
Gets a new DynamicGodotObject associated with this instance.
(Inherited from Object.) |
![]() | ExtraSpacingBottom | Extra spacing at the bottom in pixels. |
![]() | ExtraSpacingChar | Extra spacing for each character in pixels. This can be a negative number to make the distance between characters smaller. |
![]() | ExtraSpacingSpace | Extra spacing for the space character (in addition to ExtraSpacingChar) in pixels. This can be a negative number to make the distance between words smaller. |
![]() | ExtraSpacingTop | Extra spacing at the top in pixels. |
![]() | FontData | The font data. |
![]() | NativeInstance | (Inherited from Object.) |
![]() | OutlineColor | The font outline's color. Note: It's recommended to leave this at the default value so that you can adjust it in individual controls. For example, if the outline is made black here, it won't be possible to change its color using a Label's font outline modulate theme item. |
![]() | OutlineSize | The font outline's thickness in pixels (not relative to the font size). |
![]() | ResourceLocalToScene | If true, the resource will be made unique in each instance of its local scene. It can thus be modified in a scene instance without impacting other instances of that same scene. |
![]() | ResourceName | The name of the resource. This is an optional identifier. If ResourceName is not empty, its value will be displayed to represent the current resource in the editor inspector. For built-in scripts, the ResourceName will be displayed as the tab name in the script editor. |
![]() | ResourcePath | The path to the resource. In case it has its own file, it will return its filepath. If it's tied to the scene, it will return the scene's path, followed by the resource's index. |
![]() | Size | The font size in pixels. |
![]() | UseFilter | If true, filtering is used. This makes the font blurry instead of pixelated when scaling it if font oversampling is disabled or ineffective. It's recommended to enable this when using the font in a control whose size changes over time, unless a pixel art aesthetic is desired. |
![]() | UseMipmaps | If true, mipmapping is used. This improves the font's appearance when downscaling it if font oversampling is disabled or ineffective. |