package cairo2

  1. Overview
  2. Docs

Module Ft.SynthesizeSource

Sourcetype t = {
  1. bold : bool;
  2. oblique : bool;
}
Sourceval get : [ `Ft ] Font_face.t -> t

get font returns the synthesized information.

Sourceval set : ?bold:bool -> ?oblique:bool -> [ `Ft ] Font_face.t -> unit

set font synthesize different glyphs from a base font, which is useful if you lack those glyphs from a true bold or oblique font.

Sourceval unset : ?bold:bool -> ?oblique:bool -> [ `Ft ] Font_face.t -> unit

unset font undo what set did.

OCaml

Innovation. Community. Security.