phpdave11 / gofpdf

A PDF document generator with high level support for text, drawing and images
http://godoc.org/github.com/phpdave11/gofpdf
MIT License
215 stars 43 forks source link

incorrect font flag value #7

Open benoitkugler opened 4 years ago

benoitkugler commented 4 years ago

I think the SmallCap value defined in def (line 651) as 1 << 18 should be 1 << 17, so that the "bit position" defined in the SPEC, part 9.8.2 (Font Descriptor Flag) in Table 123 (Font flag), is actually 18. As an other evidence, consider that ForceBold has the same value 1 << 18, which is certainly a mistake.