This library provides a font selection scheme for SATySFi.
Use Satyrographos to install this library.
opam install satysfi-fss
satyrographos install
Import the following packages:
@require: fss/fss
@require: fss/fonts
@require: fss/style
Use \font-set
(inline) or +font-set
(block) to apply a font set.
fss/fonts
package provides a font set Fonts.default-font-set
.
Example:
+font-set(Fonts.default-font-set) <
+p {
text \font-set(another-font-set){abc}
}
>
In satysfi-fss, font width, weight, style, and so on are managed as font styles.
Use \font-style
(inline) or +font-style
(block) to apply font styles.
Example:
+font-style[medium; upright] <
+p {
Here is roman text.
\font-style[italic]{
Italic text.
\font-style[bold]{
Bold italic text.
}
}
}
>
fss/fonts
package provides the following font style keywords.
- Weight:
medium
,bold
- Style:
upright
,italic