1. Ross Light
  2. gopdf
  3. Issues
Issue #8 new

Support for other fonts

Anthony Starks
created an issue

Are there plans to add support for fonts other than than 14 standard? Also, if I want to add metrics for fonts manually, can you describe the metrics format?

Comments (3)

  1. Ross Light repo owner

    For this (and other issues), I don't has as much time as I would like to work on gopdf. I would be happy to accept pull requests.

    Basically the metrics.go file is a lookup file of the horizontal widths of all the glyphs, in thousandths of a unit per font size unit. See computeStringWidth for better details. buildmetrics generates this from an Adobe afm file, but if you were to use freetype-go, you could get this from HMetric.

  2. Log in to comment