wumpus-core-0.30.0: Pure Haskell PostScript and SVG generation.

PortabilityGHC
Stabilityunstable
Maintainerstephen.tetley@gmail.com

Wumpus.Core.PtSize

Contents

Description

Numeric type representing Point size (1/72 inch) which is PostScript and Wumpus-Core's internal unit size.

Other unit types (e.g. centimeter) should define an appropriate instance of FromPtSize.

Synopsis

Point size type

data PtSize Source

Wrapped Double representing Point size for font metrics etc.

Extract (unscaled) PtSize as a Double

Conversion class

class FromPtSize u whereSource

Convert the value of PtSize scaling accordingly.

Note - the Double instance perfoms no scaling, this is because internally Wumpus-Core works in points.

Methods

fromPtSize :: PtSize -> uSource

Instances