public RenderedStringTextComponent(string text, string fontName)
     : this(text, String.IsNullOrEmpty(fontName) ? null : FontManager.GetSingleton().Get(fontName))
 {
 }
 /// <summary>
 /// set the font to use when rendering the text.
 /// </summary>
 /// <param name="fontName"></param>
 public void SetFont(string fontName)
 {
     d_font = String.IsNullOrEmpty(fontName)
                      ? null
                      : FontManager.GetSingleton().Get(fontName);
 }
예제 #3
0
 protected Font GetFontObject(Window window)
 {
     return(String.IsNullOrEmpty(_font)
                ? window.GetFont()
                : FontManager.GetSingleton().Get(_font));
 }