package cairo

  1. Overview
  2. Docs
exception FT_Error of int
type ft_library
type ft_face
val init_freetype : unit -> ft_library
val done_freetype : ft_library -> unit
val new_face : ft_library -> ?index:int -> string -> ft_face
val done_face : ft_face -> unit
type fc_pattern
val fc_name_parse : ?options:Cairo.Font_Options.t -> string -> fc_pattern
val fc_name_unparse : fc_pattern -> string
type font_face = [ `Any | `FT ] Cairo.font_face
val font_face_create_for_pattern : fc_pattern -> font_face
val font_face_create_for_ft_face : ft_face -> int -> font_face
val downcast_font_face : [> `Any ] Cairo.font_face -> font_face
val downcast_scaled_font : [> `Any ] Cairo.Scaled_Font.t -> [ `Any | `FT ] Cairo.Scaled_Font.t
val font_lock_face : [> `FT ] Cairo.Scaled_Font.t -> ft_face
val font_unlock_face : [> `FT ] Cairo.Scaled_Font.t -> unit
OCaml

Innovation. Community. Security.