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