10.1.5.1.5. TypographyUnit

Module to implement common typography units.

class Patro.GraphicEngine.GraphicScene.TypographyUnit.InchUnit(value)[source]

Bases: Patro.GraphicEngine.GraphicScene.TypographyUnit.TypographyUnit

to_inch()[source]
to_mm()[source]
to_point()[source]
class Patro.GraphicEngine.GraphicScene.TypographyUnit.MmUnit(value)[source]

Bases: Patro.GraphicEngine.GraphicScene.TypographyUnit.TypographyUnit

to_inch()[source]
to_mm()[source]
to_point()[source]
class Patro.GraphicEngine.GraphicScene.TypographyUnit.PointUnit(value)[source]

Bases: Patro.GraphicEngine.GraphicScene.TypographyUnit.TypographyUnit

to_inch()[source]
to_mm()[source]
to_point()[source]
class Patro.GraphicEngine.GraphicScene.TypographyUnit.TypographyUnit(value)[source]

Bases: object

INCH_2_MM = 25.4
INCH_2_POINT = 0.013888888888888888
MM_2_INCH = 0.03937007874015748
MM_2_POINT = 2.834645669291339
PICA_2_POINT = 12
POINT_2_INCH = 72
POINT_2_MM = 0.35277777777777775
TEX_POINT_2_INCH = 72.27
__float__()[source]
__init__(value)[source]

Initialize self. See help(type(self)) for accurate signature.