-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always check for additional glyph list and add tests
- Loading branch information
Showing
4 changed files
with
77 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
src/UglyToad.PdfPig.Tests/Integration/AdditionalGlyphListTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
namespace UglyToad.PdfPig.Tests.Integration | ||
{ | ||
using System.Linq; | ||
|
||
public class AdditionalGlyphListTests | ||
{ | ||
[Fact] | ||
public void Type1FontSimple1() | ||
{ | ||
using (var document = PdfDocument.Open(IntegrationHelpers.GetDocumentPath("2108.11480"))) | ||
{ | ||
var page = document.GetPage(2); | ||
Assert.Contains("\u22c3", page.Letters.Select(l => l.Value)); | ||
} | ||
} | ||
|
||
[Fact] | ||
public void Type1FontSimple2() | ||
{ | ||
using (var document = PdfDocument.Open(IntegrationHelpers.GetDocumentPath("ICML03-081"))) | ||
{ | ||
var page = document.GetPage(2); | ||
Assert.Contains("\u2211", page.Letters.Select(l => l.Value)); | ||
Assert.Contains("\u220f", page.Letters.Select(l => l.Value)); | ||
Assert.Contains("[", page.Letters.Select(l => l.Value)); | ||
Assert.Contains("]", page.Letters.Select(l => l.Value)); | ||
} | ||
} | ||
|
||
[Fact] | ||
public void Type1FontSimple3() | ||
{ | ||
using (var document = PdfDocument.Open(IntegrationHelpers.GetDocumentPath("Math119FakingData"))) | ||
{ | ||
var page = document.GetPage(4); | ||
Assert.Contains("(", page.Letters.Select(l => l.Value)); | ||
Assert.Contains(")", page.Letters.Select(l => l.Value)); | ||
Assert.Contains("\u2211", page.Letters.Select(l => l.Value)); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters