improve caching for system font finder and fix issue with composite glyphs in truetype fonts

This commit is contained in:
Eliot Jones
2019-01-09 20:42:49 +00:00
parent b6a528a97d
commit d86c79da45
3 changed files with 73 additions and 18 deletions

View File

@@ -1,5 +1,8 @@
namespace UglyToad.PdfPig.Tests.Integration
{
//using System;
//using System.Diagnostics;
//using System.IO;
using Xunit;
/// <summary>
@@ -10,6 +13,27 @@
[Fact]
public void Tests()
{
//var files = Directory.GetFiles("C:\\git\\testdocs", "*.pdf");
//foreach (var file in files)
//{
// try
// {
// using (var document = PdfDocument.Open(file, new ParsingOptions{ UseLenientParsing = false}))
// {
// for (var i = 1; i <= document.NumberOfPages; i++)
// {
// var page = document.GetPage(i);
// var text = page.Text;
// Trace.WriteLine(text);
// }
// }
// }
// catch (Exception ex)
// {
// throw new InvalidOperationException($"Error parsing: {Path.GetFileName(file)}.", ex);
// }
//}
}
}
}