# Module Cairo_ft

    module Cairo_ft: sig .. end

Minimal support for the Fontconfig/Freetype font interface

    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

this is a hack: this actually calls FcNameParse, FcConfigSubstitute, cairo_ft_font_options_substitute, FcDefaultSubstitute and FcFontMatch

    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