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