Closed RudolfVonKrugstein closed 1 year ago
It looks like the widths can be read directly from the fontmetrics entry.
The firstchar, lastchar and widths entries are used when writing a font.
This part of the code was written about fifteen years ago, and I couldn't tell you why now.
Ah, ok, fair enough :).
Thank you for the information and thank you for camlpdf!
I am trying to get to the character widths for a SimpleFont.
Looking at the code here: https://github.com/johnwhitington/camlpdf/blob/master/pdftext.ml#L432 When loading a simple font,
firstchar
,lastchar
andwidths
are all initilized to 0 (or empty list).What is the reason for that? What is the point of having the
firstchar
,lastchar
andwidths
members of the simple font if they are not read anyway?