Exemple #1
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Gets the internal font name for the given UI font.
 /// </summary>
 /// <param name="fontNameUI">UI name of the font.</param>
 /// <returns>Internal font name</returns>
 /// ------------------------------------------------------------------------------------
 public static string GetInternalFontName(string fontNameUI)
 {
     if (fontNameUI == FdoResources.ResourceString("kstidDefaultFont"))
     {
         return(StStyle.DefaultFont);
     }
     if (fontNameUI == FdoResources.ResourceString("kstidDefaultPubFont"))
     {
         return(StStyle.DefaultPubFont);
     }
     if (fontNameUI == FdoResources.ResourceString("kstidDefaultHeadingFont"))
     {
         return(StStyle.DefaultHeadingFont);
     }
     return(fontNameUI);
 }
Exemple #2
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Gets the name of the UI font.
 /// </summary>
 /// <param name="fontName">Name of the font.</param>
 /// <returns></returns>
 /// ------------------------------------------------------------------------------------
 public static string GetUIFontName(string fontName)
 {
     if (fontName == StStyle.DefaultFont)
     {
         return(FdoResources.ResourceString("kstidDefaultFont"));
     }
     if (fontName == StStyle.DefaultPubFont)
     {
         return(FdoResources.ResourceString("kstidDefaultPubFont"));
     }
     if (fontName == StStyle.DefaultHeadingFont)
     {
         return(FdoResources.ResourceString("kstidDefaultHeadingFont"));
     }
     return(fontName);
 }