DynamicFont

DynamicFont renders vector font files at runtime.

DynamicFont renders vector font files (such as TTF or OTF) dynamically at runtime instead of using a prerendered texture atlas like BitmapFont. This trades the faster loading time of BitmapFonts for the ability to change font parameters like size and spacing during runtime. DynamicFontData is used for referencing the font file paths.

@GodotBaseClass
struct DynamicFont {}

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Enums

Constants
enum Constants
SpacingType
enum SpacingType

Functions

addFallback
void addFallback(DynamicFontData data)

Adds a fallback font.

getFallback
Ref!DynamicFontData getFallback(long idx)

Returns the fallback font at index idx.

getFallbackCount
long getFallbackCount()

Returns the number of fallback fonts.

getFontData
Ref!DynamicFontData getFontData()
getOutlineColor
Color getOutlineColor()
getOutlineSize
long getOutlineSize()
getSize
long getSize()
getSpacing
long getSpacing(long type)
getUseFilter
bool getUseFilter()
getUseMipmaps
bool getUseMipmaps()
opAssign
DynamicFont opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(DynamicFont other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
removeFallback
void removeFallback(long idx)

Removes the fallback font at index idx.

setFallback
void setFallback(long idx, DynamicFontData data)

Sets the fallback font at index idx.

setFontData
void setFontData(DynamicFontData data)
setOutlineColor
void setOutlineColor(Color color)
setOutlineSize
void setOutlineSize(long size)
setSize
void setSize(long data)
setSpacing
void setSpacing(long type, long value)
setUseFilter
void setUseFilter(bool enable)
setUseMipmaps
void setUseMipmaps(bool enable)

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

extraSpacingBottom
long extraSpacingBottom [@property getter]
long extraSpacingBottom [@property setter]

Extra spacing at the bottom in pixels.

extraSpacingChar
long extraSpacingChar [@property getter]
long extraSpacingChar [@property setter]

Extra character spacing in pixels.

extraSpacingSpace
long extraSpacingSpace [@property getter]
long extraSpacingSpace [@property setter]

Extra space spacing in pixels.

extraSpacingTop
long extraSpacingTop [@property getter]
long extraSpacingTop [@property setter]

Extra spacing at the top in pixels.

fontData
DynamicFontData fontData [@property getter]
DynamicFontData fontData [@property setter]

The font data.

outlineColor
Color outlineColor [@property getter]
Color outlineColor [@property setter]
outlineSize
long outlineSize [@property getter]
long outlineSize [@property setter]
size
long size [@property getter]
long size [@property setter]

The font size.

useFilter
bool useFilter [@property getter]
bool useFilter [@property setter]

If true filtering is used.

useMipmaps
bool useMipmaps [@property getter]
bool useMipmaps [@property setter]

If true mipmapping is used.

Static functions

_new
DynamicFont _new()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

_classBinding
struct _classBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
ToRef as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta