package cairo2

  1. Overview
  2. Docs
type t = {
  1. bold : bool;
  2. oblique : bool;
}
val get : [ `Ft ] Font_face.t -> t

get font returns the synthesized information.

val 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.

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

unset font undo what set did.

OCaml

Innovation. Community. Security.