package graphv_core

  1. Overview
  2. Docs
type t
type iter
type font = int
module GlyphBitmap : sig ... end
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 -> Impl.Buffer.UByte.t * 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.