Library
Module
Module type
Parameter
Class
Class type
Fonts.
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.
The type for font weights. Usually `W400
denotes a normal weight and `W700
, a bold weight.
The type for fonts. The size is expressed in Vg
's coordinate space, the em unit of the font is scaled to that size.
equal_f eq font font'
is like equal
but uses eq
to test floating point values.
compare_f cmp font font'
is like compare
but uses cmp
to compare floating point values.
val pp : Stdlib.Format.formatter -> t -> unit
pp ppf font
is a textual representation of font
on ppf
.
val to_string : t -> string