summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2016-05-04 21:06:52 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2016-05-04 21:06:56 +0200
commit766978d24919fef28e12a8c4239c96e92dc349a5 (patch)
tree9332c3d1f0690e521aa00a4877edc76dc7da6345 /misc
parent109d0b5c76cf614385482b6efd52fca9c76c1cfa (diff)
downloadluaotfload-766978d24919fef28e12a8c4239c96e92dc349a5.tar.gz
[aux] fix units lookup prevent crash with AFM fonts
With the new loader, the ``units_per_em`` field resides under the toplevel TFM structure with the key ``units``. For AFM fonts, it is not fount under the metadata table too, which we are currently querying. Thus we prefer the main value, falling back on metadata only in case it is missing. At this occasion, tidy up our unit lookup helper and use that wherever we need access to the values ourselves.
Diffstat (limited to 'misc')
0 files changed, 0 insertions, 0 deletions