Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
A minimal Interface to FreeType/Fontconfig. Functions in this module will raie Unavailable
if Cairo has not been compiled with FreeType support (and fonconfig is available). This module is not thread safe.
val init_freetype : unit -> library
init_freetype()
Initialize a new FreeType library value. In multi-threaded applications it is recommended to use a different library value for each thread.
face pathname
open the face contained in the pathname
.
val create_for_ft_face : ?flags:flag list -> face -> [ `Ft ] Font_face.t
create_for_ft_face face
create a new font face for the FreeType font backend from a FreeType face
.
val create_for_pattern :
?options:Font_options.t ->
string ->
[ `Ft ] Font_face.t
create_for_pattern pattern
creates a new font face for the FreeType font backend based on a fontconfig pattern
(in text form).
val scaled_font_lock_face : [ `Ft ] Scaled_font.t -> face
val scaled_font_unlock_face : [ `Ft ] Scaled_font.t -> unit
scaled_font_unlock_face font
releases a face obtained with scaled_font_lock_face
.
module Synthesize : sig ... end