public void LoadFontMetadata_WithWoff1Format()
        {
            var description = FontDescription.LoadDescription(TestFonts.OpensSansWoff1Data());

            Assert.Equal("Open Sans Regular", description.FontNameInvariantCulture);
            Assert.Equal("Regular", description.FontSubFamilyNameInvariantCulture);
        }
        public void GlyphsCount_WithWoffFormat_EqualsTtf()
        {
            var        fontReaderWoff = new FontReader(TestFonts.OpensSansWoff1Data());
            GlyphTable glyphsWoff     = fontReaderWoff.GetTable <GlyphTable>();
            var        fontReaderTtf  = new FontReader(TestFonts.OpenSansTtfData());
            GlyphTable glyphsTtf      = fontReaderTtf.GetTable <GlyphTable>();

            Assert.Equal(glyphsTtf.GlyphCount, glyphsWoff.GlyphCount);
        }
        public void ReadFont_WithWoffFormat_EqualsTtf()
        {
            var fontReaderTtf  = new FontReader(TestFonts.OpenSansTtfData());
            var fontReaderWoff = new FontReader(TestFonts.OpensSansWoff1Data());

            Assert.Equal(fontReaderTtf.Headers.Count, fontReaderWoff.Headers.Count);
            foreach (string key in fontReaderTtf.Headers.Keys)
            {
                Assert.True(fontReaderWoff.Headers.ContainsKey(key));
            }
        }