mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-09-20 20:07:57 +08:00
handle missing width and height correctly for compact font format fonts #75
This commit is contained in:
@@ -100,13 +100,12 @@
|
||||
|
||||
var font = fontSet.Fonts["MinionPro-It"];
|
||||
|
||||
var charStrings = default(Type2CharStrings);
|
||||
font.CharStrings.Match(x => throw new InvalidOperationException("The charstrings in MinionPro are Type 2."),
|
||||
x => charStrings = x);
|
||||
var charStrings = font.CharStrings.Match(x => throw new InvalidOperationException("The charstrings in MinionPro are Type 2."),
|
||||
x => x);
|
||||
|
||||
foreach (var charString in charStrings.CharStrings)
|
||||
{
|
||||
var path = charStrings.Generate(charString.Key);
|
||||
var path = charStrings.Generate(charString.Key, 1000, 0);
|
||||
|
||||
Assert.NotNull(path);
|
||||
}
|
||||
|
Reference in New Issue
Block a user