コード例 #1
0
 public virtual void ZeroGlyphIsAllowedOnlyIfFontIsSymbolicTest()
 {
     PdfFontUnitTest.TestFont font = new PdfFontUnitTest.TestFont();
     NUnit.Framework.Assert.IsFalse(font.ContainsGlyph(PdfFontUnitTest.TestFont.ZERO_CODE_GLYPH));
     font.SetFontProgram(new PdfFontUnitTest.TestFontProgram());
     NUnit.Framework.Assert.IsTrue(font.ContainsGlyph(PdfFontUnitTest.TestFont.ZERO_CODE_GLYPH));
 }
コード例 #2
0
 public virtual void ContainsGlyphTest()
 {
     PdfFontUnitTest.TestFont font = new PdfFontUnitTest.TestFont();
     NUnit.Framework.Assert.IsTrue(font.ContainsGlyph(PdfFontUnitTest.TestFont.SIMPLE_GLYPH));
     NUnit.Framework.Assert.IsFalse(font.ContainsGlyph(111));
 }