package cairo2

  1. Overview
  2. Docs
type 'a t
val set : context -> 'a t -> unit
val get : context -> 'a t
val create : 'a Font_face.t -> Matrix.t -> Matrix.t -> Font_options.t -> 'a t
val extents : 'a t -> font_extents
val text_extents : 'a t -> string -> text_extents
val glyph_extents : 'a t -> Glyph.t array -> text_extents
val text_to_glyphs : 'a t -> x:float -> y:float -> string -> Glyph.t array * Glyph.cluster array * Glyph.cluster_flags
val get_font_face : 'a t -> 'a Font_face.t
val get_font_options : 'a t -> Font_options.t
val get_font_matrix : 'a t -> Matrix.t
val get_ctm : 'a t -> Matrix.t
val get_scale_matrix : 'a t -> Matrix.t
val get_type : 'a t -> font_type