public LegacySpriteText(ISkin skin, LegacyFont font) { Shadow = false; UseFullGlyphHeight = false; Font = new FontUsage(skin.GetFontPrefix(font), 1, fixedWidth: true); Spacing = new Vector2(-skin.GetFontOverlap(font), 0); glyphStore = new LegacyGlyphStore(skin); }
public static bool HasFont(this ISkin source, LegacyFont font) { return(source.GetTexture($"{source.GetFontPrefix(font)}-0") != null); }