Skip to content

Added units_per_em function

Jeremy Soller requested to merge fschutt:master into master

Created by: fschutt

See https://github.com/redox-os/rusttype/issues/79 - this exposes the "units per EM height" of a font - usually a value of 1024 or 2048. I've checked that these are the correct values by cross-referencing freetype. The returned value is the same as in freetype the FTFaceRect::units_per_EM value.

Merge request reports