package vg
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Declarative 2D vector graphics for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
vg-0.9.5.tbz
sha512=ccd0d0f61cdbdb3420b5f4d747fe6e6b95e487738f70163a6e26396b1eeb9a42118306bc9c2c9afc9256171d57f81fbdf08ec558625eb5d723230aa0e9564fb6
doc/vg/Vg/Font/index.html
Module Vg.FontSource
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.
Fonts
The type for font weights. Usually `W400 denotes a normal weight and `W700, a bold weight.
The type for font slants.
The type for fonts. The size is expressed in Vg's coordinate space, the em unit of the font is scaled to that size.
Predicates and comparisons
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.
Formatters
pp ppf font is a textual representation of font on ppf.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page