add inkscape document. fix bug with truetype width where no font program present

This commit is contained in:
Eliot Jones
2018-11-15 22:51:46 +00:00
parent d8bf977842
commit c72f3796e2
4 changed files with 8 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -11,6 +11,7 @@
private const string SingleGoogleDrivePage = "Single Page Simple - from google drive";
private const string SinglePageFormattedType0Content = "Type0 Font";
private const string SinglePageType1Content = "ICML03-081";
private const string SingleInkscapePage = "Single Page Simple - from inkscape";
private static string GetFilename(string name)
{
@@ -30,6 +31,12 @@
Run(SinglePageType1Content);
}
[Fact]
public void SinglePageSimpleFromInkscape()
{
Run(SingleInkscapePage);
}
[Fact]
public void SinglePageNonLatinFromAcrobatDistiller()
{

View File

@@ -110,7 +110,7 @@
if (font == null)
{
fromFont = false;
width = widths[characterCode];
width = widths[characterCode - firstCharacter];
}
else
{