Exemplo n.º 1
0
 protected TextBase(string fontName, int fontSize)
 {
     resource  = FontManager.GetFontResource(fontName, fontSize);
     fontScale = fontSize > 0
                         ? (float)fontSize / resource.fontSize
                         : 1;
 }
Exemplo n.º 2
0
 protected TextBase(FontResource resource, float fontScale)
 {
     this.resource  = resource;
     this.fontScale = fontScale;
 }