Exemplo n.º 1
0
 /// <summary>
 /// Returns a coverage info provider for the specified font family.
 /// </summary>
 public static IFontCoverage GetFontCoverage(IdeoFamily fam)
 {
     if (fam == IdeoFamily.Noto)
     {
         return(new FontCoverageFull());
     }
     else if (fam == IdeoFamily.ArphicKai)
     {
         return(cvrArphic);
     }
     else if (fam == IdeoFamily.WinKai)
     {
         return(new CvrBinary(winCoverage));
     }
     else
     {
         throw new Exception("Forgotten family: " + fam.ToString());
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Returns a coverage info provider for the specified font family.
 /// </summary>
 public static IFontCoverage GetFontCoverage(IdeoFamily fam)
 {
     if (fam == IdeoFamily.Noto) return new FontCoverageFull();
     else if (fam == IdeoFamily.ArphicKai) return cvrArphic;
     else if (fam == IdeoFamily.WinKai) return new CvrBinary(winCoverage);
     else throw new Exception("Forgotten family: " + fam.ToString());
 }