- addFallback
void addFallback(DynamicFontData data)
- 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)
- 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]
- 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]
- 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.
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.