package graphv_font

  1. Overview
  2. Docs
type font
type glyph
val invalid_glyph : glyph
module VMetrics : sig ... end
module HMetrics : sig ... end
val vmetrics : font -> VMetrics.t
val hmetrics : font -> glyph -> HMetrics.t
module Box : sig ... end
val get_glyph_bitmap_box : font -> glyph -> scale:float -> Box.t
val kern_advance : font -> glyph -> glyph -> int
val create_font : Buffer.t -> font
val is_invalid_glyph : glyph -> bool
val make_glyph_bitmap : font -> Buffer.t -> width:int -> height:int -> scale:float -> Box.t -> glyph -> unit
val scale_for_mapping_em_to_pixels : font -> float -> float
val find : font -> int -> glyph option
val load_font : string -> font option
OCaml

Innovation. Community. Security.