示例#1
0
 public ScaledFontData(IReadOnlyDictionary <uint, CharMetrics> metricsMap, int ascent, int descent,
                       int height, int lineHeight, FontTextureAtlas atlas)
 {
     MetricsMap = metricsMap;
     Ascent     = ascent;
     Descent    = descent;
     Height     = height;
     LineHeight = lineHeight;
     Atlas      = atlas;
 }
示例#2
0
 public FontInstanceHandle(FontManager manager, FontTextureAtlas atlas, int size, Face face,
                           Dictionary <char, uint> glyphMap,
                           int ascent, int descent, int lineHeight, Dictionary <uint, CharMetrics> metricsMap)
 {
     _fontManager = manager;
     Atlas        = atlas;
     Size         = size;
     Face         = face;
     _glyphMap    = glyphMap;
     Ascent       = ascent;
     Descent      = descent;
     LineHeight   = lineHeight;
     Height       = ascent + descent;
     _metricsMap  = metricsMap;
 }