module Font:sig
..end
Font handling in Vg
happens in renderers and text layout and
text to glyph translations are expected to be carried out by an
external library. Values of type Vg.font
just represent a font
specification to be resolved by the concrete renderer.
typeweight =
[ `W100 | `W200 | `W300 | `W400 | `W500 | `W600 | `W700 | `W800 | `W900 ]
`W400
denotes a normal
weight and `W700
, a bold weight.typeslant =
[ `Italic | `Normal | `Oblique ]
type
t = {
|
name : |
|
slant : |
|
weight : |
|
size : |
Vg
's coordinate space, the em unit of the font
is scaled to that size.val equal : t -> t -> bool
equal font font'
is font = font'
.val equal_f : (float -> float -> bool) -> t -> t -> bool
val compare : t -> t -> int
compare font font'
is Pervasives.compare font font'
val compare_f : (float -> float -> int) -> t -> t -> int
val to_string : t -> string
to_string font
is a textual representation of font
.val pp : Format.formatter -> t -> unit
pp ppf font
is a textual representation of font
on ppf
.