コード例 #1
0
        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);
        }
コード例 #2
0
 public static bool HasFont(this ISkin source, LegacyFont font)
 {
     return(source.GetTexture($"{source.GetFontPrefix(font)}-0") != null);
 }