internal static string RedirFontSize(string FaceName) { if (!FontReplaces.ContainsKey(FaceName.Trim())) { return(null); } if (FontReplaces.ContainsKey("*")) { return(FontReplaces["*"].Size); } return(FontReplaces[FaceName.Trim()].Size); }
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); }