frenzywang / freetype-go

Automatically exported from code.google.com/p/freetype-go
Other
0 stars 0 forks source link

Expose ascent and descent in truetype.Font. #15

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
These are needed to figure out line height and the height for the background of 
highlighted text. Font.Bounds().YMin and YMax don't work; they are too large. 
Instead we need ascent and descent from the hhea table.

Original issue reported on code.google.com by burns.ethan@gmail.com on 16 Feb 2015 at 8:13

GoogleCodeExporter commented 8 years ago
linegap would be nice too.

Original comment by burns.ethan@gmail.com on 16 Feb 2015 at 8:53