package graphv_font

  1. Overview
  2. Docs

Parameters

Signature

type t
type iter
type font = int
module GlyphBitmap : sig ... end
type data = Impl.Buffer.t
val create : unit -> t
module Quad : sig ... end
module Iter : sig ... end
type v_metrics = {
  1. ascender : float;
  2. descender : float;
  3. line_height : float;
}
val bounds : t -> float -> float -> ?off:int -> ?end_:int -> string -> float * Graphv_core_lib.Bounds.t
val line_bounds : t -> float -> float * float
val set_size : t -> float -> unit
val set_spacing : t -> float -> unit
val set_blur : t -> float -> unit
val set_align : t -> Graphv_core_lib.Align.t -> unit
val set_font : t -> int -> unit
val vert_metrics : t -> v_metrics
val find_font : t -> string -> font option
val add_font : t -> string -> string -> font option
val validate_texture : t -> (int * int * int * int) option
val get_texture_data : t -> data * int * int
val iter_init : t -> float -> float -> ?start:int -> ?end_:int -> string -> GlyphBitmap.t -> iter
val iter_next : t -> iter -> Quad.t -> bool
val add_fallback_id : t -> font:font -> fallback:font -> unit
val add_fallback : t -> name:string -> fallback:string -> unit
val reset_fallback_id : t -> font:font -> unit
val reset_fallback : t -> name:string -> unit
OCaml

Innovation. Community. Security.