Velaptor.Content.Fonts.IFont
Velaptor
Velaptor.Content.Fonts
IFont Interface
Represents a font with a set size and style that can be used to render text to the screen.
public interface IFont : Velaptor.Content.IContent
Derived
↳ Font
Implements IContent
Properties
Atlas
Gets the font atlas texture that contains all the bitmap data for all available glyphs for the font.
Velaptor.Content.ITexture Atlas { get; }
Property Value
AvailableStylesForFamily
Gets a list of all the available font styles for the current font FamilyName.
System.Collections.Generic.IEnumerable<Velaptor.Content.Fonts.FontStyle> AvailableStylesForFamily { get; }
Property Value
System.Collections.Generic.IEnumerable<FontStyle>
CacheEnabled
Gets or sets a value indicating whether to cache the measurements of the text.
bool CacheEnabled { get; set; }
Property Value
CurrentMeasureCacheSize
Gets the total number of text size measurements that are cached.
int CurrentMeasureCacheSize { get; }
Property Value
FamilyName
Gets the name of the font family.
string FamilyName { get; }
Property Value
HasKerning
Gets a value indicating whether the font has kerning for text rendering layout.
bool HasKerning { get; }
Property Value
IsDefaultFont
Gets a value indicating whether the font is a default font.
bool IsDefaultFont { get; }
Property Value
LineSpacing
Gets the spacing between lines of text in pixels.
float LineSpacing { get; }
Property Value
MaxMeasureCacheSize
Gets or sets the maximum number of text measurements to cache.
int MaxMeasureCacheSize { get; set; }
Property Value
Metrics
Gets the list of metrics for all the glyphs supported by the font.
System.Collections.Generic.IReadOnlyCollection<Velaptor.Graphics.GlyphMetrics> Metrics { get; }
Property Value
System.Collections.Generic.IReadOnlyCollection<GlyphMetrics>
Size
Gets the size of the font in points.
uint Size { get; }
Property Value
Source
Gets the source of where the font was loaded.
Velaptor.Content.Fonts.FontSource Source { get; }
Property Value
Style
Gets the style of the font.
Velaptor.Content.Fonts.FontStyle Style { get; }