Timeline for Finding the size (in points) of the descender of a font in Ghostscript / Postscript?
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 2, 2018 at 9:48 | vote | accept | Chris | ||
| Jan 1, 2018 at 19:38 | answer | added | meuh | timeline score: 1 | |
| Jan 1, 2018 at 14:30 | comment | added | ridgy | Look at stackoverflow.com/questions/3618194/… for a given string... | |
| Jan 1, 2018 at 13:42 | comment | added | ridgy |
To get this information for PS (type1 or type3) fonts, you can find the .pfb or .pfa and grep for FontBBox. Remember, PS fonts use 1000 units for one point. Or, if you are used to PS, you may extract this from the font in your program. It's more than 20 years I did this the last time, so please forgive me I can't help you more at the moment.
|
|
| Jan 1, 2018 at 13:24 | comment | added | ridgy |
In each font there is an array called font bounding box, which is the maximum rectangle into which every glyph fits. With postscript, this is (xlower, ylower, xupper, yupper), so the second value of this array is the distance from the baseline to the lowest point of any character.
|
|
| Jan 1, 2018 at 9:27 | review | First posts | |||
| Jan 1, 2018 at 9:30 | |||||
| Jan 1, 2018 at 9:19 | history | asked | Chris | CC BY-SA 3.0 |