/// <summary>Checks whether in general we support requested font format.</summary> /// <param name="format"> /// /// <see cref="FontFace.FontFormat"/> /// </param> /// <returns>true, if supported or unrecognized.</returns> private bool SupportedFontFormat(FontFace.FontFormat format) { switch (format) { case FontFace.FontFormat.None: case FontFace.FontFormat.TrueType: case FontFace.FontFormat.OpenType: case FontFace.FontFormat.WOFF: case FontFace.FontFormat.WOFF2: { return true; } default: { return false; } } }
/// <summary>Checks whether in general we support requested font format.</summary> /// <param name="format"> /// /// <see cref="FontFormat"/> /// </param> /// <returns>true, if supported or unrecognized.</returns> private bool SupportedFontFormat(FontFace.FontFormat format) { //TODO (RND-1065) code duplication switch (format) { case FontFace.FontFormat.None: case FontFace.FontFormat.TrueType: case FontFace.FontFormat.OpenType: case FontFace.FontFormat.WOFF: case FontFace.FontFormat.WOFF2: { return(true); } default: { return(false); } } }
/// <summary> /// Instantiates a new /// <see cref="FontFaceSrc"/> /// instance. /// </summary> /// <param name="src">a source path</param> /// <param name="isLocal">indicates if the font is local</param> /// <param name="format">the font format (true type, open type, woff,...)</param> private FontFaceSrc(String src, bool isLocal, FontFace.FontFormat format) { this.format = format; this.src = src; this.isLocal = isLocal; }