public virtual void ConvertGlyphToBytesWithEmptyEncodingTest()
        {
            PdfSimpleFont <FontProgram> fontToTest = new PdfSimpleFontTest.TestSimpleFont(FontEncoding.CreateEmptyFontEncoding
                                                                                              ());

            byte[] bytes = fontToTest.ConvertToBytes(E_GLYPH_FONT_SPECIFIC);
            NUnit.Framework.Assert.AreEqual(new byte[0], bytes);
        }
        public virtual void ConvertToBytesWithNullEntry()
        {
            PdfSimpleFont <FontProgram> fontToTest = new PdfSimpleFontTest.TestSimpleFont(FontEncoding.CreateEmptyFontEncoding
                                                                                              ());

            byte[] bytes = fontToTest.ConvertToBytes((GlyphLine)null);
            NUnit.Framework.Assert.AreEqual(new byte[0], bytes);
        }
        public virtual void ConvertGlyphToBytesWithCustomEncodingTest()
        {
            FontEncoding emptyFontEncoding = FontEncoding.CreateEmptyFontEncoding();

            emptyFontEncoding.AddSymbol(E_CUSTOM_CODE, E_CODE);
            PdfSimpleFont <FontProgram> fontToTest = new PdfSimpleFontTest.TestSimpleFont(emptyFontEncoding);

            byte[] bytes = fontToTest.ConvertToBytes(E_GLYPH_FONT_SPECIFIC);
            NUnit.Framework.Assert.AreEqual(new byte[] { E_CUSTOM_CODE }, bytes);
        }
        public virtual void ConvertGlyphLineToBytesWithEmptyEncodingTest()
        {
            PdfSimpleFont <FontProgram> fontToTest = new PdfSimpleFontTest.TestSimpleFont(FontEncoding.CreateEmptyFontEncoding
                                                                                              ());
            IList <Glyph> glyphs = new List <Glyph>();

            glyphs.Add(T_GLYPH_FONT_SPECIFIC);
            glyphs.Add(E_GLYPH_FONT_SPECIFIC);
            GlyphLine glyphLine = new GlyphLine(glyphs, 0, 2);

            byte[] bytes = fontToTest.ConvertToBytes(glyphLine);
            NUnit.Framework.Assert.AreEqual(new byte[0], bytes);
        }