fix a bug where the mediabox being defined on the pages node would throw. a lot more work on parsing compact font format

This commit is contained in:
Eliot Jones
2018-04-29 14:42:54 +01:00
parent 85d1f84965
commit b51ebfd70c
14 changed files with 969 additions and 415 deletions

View File

@@ -132,6 +132,16 @@
});
}
if (values.Length == 4)
{
return new TransformationMatrix(new []
{
values[0], values[1], 0,
values[2], values[3], 0,
0, 0, 1
});
}
throw new ArgumentException("The array must either define all 9 elements of the matrix or all 6 key elements. Instead array was: " + values);
}