Click or drag to resize

DynamicFont Properties

The DynamicFont type exposes the following members.

Properties
  NameDescription
Public propertyDynamicObject
Gets a new DynamicGodotObject associated with this instance.
(Inherited from Object.)
Public propertyExtraSpacingBottom

Extra spacing at the bottom in pixels.

Public propertyExtraSpacingChar

Extra spacing for each character in pixels.

This can be a negative number to make the distance between characters smaller.

Public propertyExtraSpacingSpace

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.

Public propertyExtraSpacingTop

Extra spacing at the top in pixels.

Public propertyFontData

The font data.

Public propertyNativeInstance (Inherited from Object.)
Public propertyOutlineColor

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.

Public propertyOutlineSize

The font outline's thickness in pixels (not relative to the font size).

Public propertyResourceLocalToScene

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.

(Inherited from Resource.)
Public propertyResourceName

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.

(Inherited from Resource.)
Public propertyResourcePath

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.

(Inherited from Resource.)
Public propertySize

The font size in pixels.

Public propertyUseFilter

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.

Public propertyUseMipmaps

If true, mipmapping is used. This improves the font's appearance when downscaling it if font oversampling is disabled or ineffective.

Top
See Also