/// <summary> /// Tells if simplified Arphic font covers a character, or can substitute, or no coverage at all. /// </summary> private static ArphicSimpCoverage getArphicCoverageSimp(char c) { FontCoverageFlags flags = cvrArphic.GetCoverage(c); if (flags == FontCoverageFlags.None) { return(ArphicSimpCoverage.None); } if (flags == FontCoverageFlags.Simp) { return(ArphicSimpCoverage.SimpCovers); } return(ArphicSimpCoverage.CanSubstitute); }
/// <summary> /// See <see cref="IFontCoverage.GetCoverage"/>. /// </summary> public FontCoverageFlags GetCoverage(char c) { FontCoverageFlags res = FontCoverageFlags.None; byte val = getCvrVal(c); if ((val & 1) == 1) { res |= FontCoverageFlags.Simp; } if ((val & 2) == 2) { res |= FontCoverageFlags.Trad; } return(res); }