wumpus-basic-0.13.0: Common drawing utilities built on wumpus-core.

PortabilityGHC
Stabilityhighly unstable
MaintainerStephen Tetley <stephen.tetley@gmail.com>

Wumpus.Basic.Graphic.GlyphMetrics

Description

Data types representing glyph metrics loaded from font files.

Synopsis

Documentation

type CodePoint = IntSource

A Unicode code-point.

data GlyphMetricsTable cu Source

NOTE - GlyphMetrics table is parametric on cu - Character unit and not on the usual u.

data GlyphMetrics Source

Constructors

GlyphMetrics 

Fields

get_bounding_box :: forall u. FromPtSize u => PtSize -> BoundingBox u
 
get_av_lookup :: forall u. FromPtSize u => PtSize -> CodePoint -> Vec2 u
 
get_cap_height :: forall u. FromPtSize u => PtSize -> u
 

monospace_metrics :: GlyphMetricsSource

This ignores the Char code lookup and just returns the default advance vector.