Class NamedFontConverter
Definition
Namespace: StardewUI.Framework.Converters
Assembly: StardewUI.dll
Converter for fonts that are already built into the game, i.e. found on Game1.
public class NamedFontConverter :
StardewUI.Framework.Converters.IValueConverter<string, Microsoft.Xna.Framework.Graphics.SpriteFont>,
StardewUI.Framework.Converters.IValueConverter
Inheritance
Object ⇦ NamedFontConverter
Implements
IValueConverter<string, SpriteFont>, IValueConverter
Remarks
Does not account for fonts added as separate assets, which require bound attributes and not literals.
Members
Constructors
Name | Description |
---|---|
NamedFontConverter() |
Methods
Name | Description |
---|---|
Convert(string) | Converts a value from the source type to the destination type. |
Details
Constructors
NamedFontConverter()
Methods
Convert(string)
Converts a value from the source type to the destination type.
Parameters
value
string
The value to convert.