コード例 #1
0
 internal static string RedirFontSize(string FaceName)
 {
     if (!FontReplaces.ContainsKey(FaceName.Trim()))
     {
         return(null);
     }
     if (FontReplaces.ContainsKey("*"))
     {
         return(FontReplaces["*"].Size);
     }
     return(FontReplaces[FaceName.Trim()].Size);
 }
コード例 #2
0
        internal static string RedirFaceName(string FaceName)
        {
            if (LogAll)
            {
                Log("Font Redirect Request: {0}", true, FaceName);
            }
            if (!FontReplaces.ContainsKey(FaceName.Trim()))
            {
                if (FontReplaces.ContainsKey("*"))
                {
                    return(FontReplaces["*"].To);
                }

                if (!string.IsNullOrWhiteSpace(FontFaceName))
                {
                    return(FontFaceName);
                }
                return(FaceName);
            }
            return(FontReplaces[FaceName.Trim()].To);
        }