scaleUpem: Tools to change the units-per-Em value in a font

Overview

The fontTools.ttLib.scaleUpem module is a helper for fontTools.ttLib.

Change the units-per-EM of a font.

AAT and Graphite tables are not supported. CFF/CFF2 fonts are de-subroutinized.

fontTools.ttLib.scaleUpem.scale_upem(font, new_upem)[source]

Change the units-per-EM of font to the new value.

class fontTools.ttLib.scaleUpem.ScalerVisitor(scaleFactor)[source]

Bases: TTVisitor

scale(v)[source]