示例#1
0
 public bool loadInternal()
 {
     _spriteFont            = _fileHandle.loadFromContentManager <SpriteFont>();
     _sharedFontGlyphLayout = newGlyphLayout();
     _capHeight             = _spriteFont.GetGlyphs()['A'].BoundsInTexture.Height;
     return(true);
 }
示例#2
0
 public bool loadInternal()
 {
     _fontName              = _fileHandle.nameWithoutExtension();
     _spriteFont            = _fileHandle.loadFromContentManager <SpriteFont>();
     _sharedFontGlyphLayout = newGlyphLayout();
     _capHeight             = _spriteFont.MeasureString("A").Y;
     return(true);
 }