package sfml

  1. Overview
  2. Docs
Bindings to the SFML multimedia library

Install

Dune Dependency

Authors

Maintainers

Sources

ocaml-sfml-0.09.2.tar.gz
sha256=ce1e50dec69a4495232261627a359a8fb54d79788147380bee78b0983f8b6951
md5=9ae99bb47bb68d5181d01b7bbc78a351

doc/sfml.graphics/SFFont/index.html

Module SFFont

Online documentation for the Font class

type t
val createFromFile : filename:string -> t
val createFromMemory : data:string -> t
val copy : t -> t
type glyph = {
  1. advance : float;
  2. bounds : float SFRect.t;
  3. textureRect : int SFRect.t;
}
val getGlyph : t -> codePoint:int32 -> characterSize:int -> bold:bool -> glyph
val getKerning : t -> first:int32 -> second:int32 -> characterSize:int -> float
val getLineSpacing : t -> characterSize:int -> float
val getUnderlinePosition : t -> characterSize:int -> float
val getUnderlineThickness : t -> characterSize:int -> float
type info = {
  1. family : string;
}
val getInfo : t -> info
OCaml

Innovation. Community. Security.