Closed lueck closed 4 years ago
Sorry for the delay.
I've made the warnings disappear, changed the types of FontName
, FontFamily
and FontStretch
to ByteString
and fixed optionalInDict
and requiredInDict
.
I just fixed parsing of CharSet
. It's an ASCII string or a byte string, but no name. I found the issue when testing on TeX-generated PDFs.
Thanks! I'll check it again and merge it, hopefully tomorrow. (I'm a bit busy and might forget, so please ping me if you won't see any reply from me in the next few days. Sorry in advance.)
Looks great, thank you.
This fixes #6
Added FontDescriptor record and a parser for it.
Added a test for a predicate function that evaluates the Flags in FontDescriptor.
Use FontBBox from FontDescriptor to determine the y-coordinates of glyphs instead of hard-coded 0 and 1 in Pdf.Content.FontInfo.
Definition of Rectangle from Pdf.Document.Types was moved to Pdf.Core.Types in order to make it reusable in core and content. Since rectangles are described in the section about common data structures of the specs next to arrays, strings and numbers, core is a good place for it.