Portability | GHC |
---|---|
Stability | unstable |
Maintainer | stephen.tetley@gmail.com |
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.
- data PtSize
- ptSize :: PtSize -> Double
- class FromPtSize u where
- fromPtSize :: PtSize -> u
Point size type
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.
fromPtSize :: PtSize -> uSource