8.16.0.4
|
class draw.Font(): | constructor ( | ~kind: kind :: Font.Kind = #'default, | ~name: name :: maybe(String) = #false, | ~size: size :: Real.in(0.0, 1024.0) = 12.0, | ~in_pixels: in_pixels :: Any = #false, | ~style: style :: Font.Style = #'normal, | ~weight: weight :: Font.Weight = #'normal, | ~has_underline: has_underline :: Any = #false, | ~smoothing: smoothing :: Font.Smoothing = #'default, | ~hinting: hinting :: Font.Hinting = #'aligned, | ~features: | features :: Map.of(Font.FeatureString, NonnegInt) = {}, | ) |
|
Creates a font configuration.
A font like an existing one can be constructed using with and
the field names kind, name, size,
in_pixels, style, weight,
has_underline, smoothing, hinting, and
features.
Properties to access font components.
Satisfied by a 4-character string containing only
(i.e., a
space),
!, or characters with
Char.to_int values
between that of
# and
~, inclusive.
A font kind.
A font style.
A font weight, either an integer in 100 to 1000
(inclusive) or one of the following symbols:
#'thin (equivalent to 100)
#'ultralight (equivalent to 200)
#'light (equivalent to 300)
#'semilight (equivalent to 350)
#'book (equivalent to 380)
#'normal (equivalent to 400)
#'medium (equivalent to 500)
#'semibold (equivalent to 600)
#'bold (equivalent to 700)
#'ultrabold (equivalent to 800)
#'heavy (equivalent to 900)
#'ultraheavy (equivalent to 1000)
A font smoothing (anti-aliasing) mode.
A font hinting (to adjust anti-aliasing) mode.