package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.pango/Ocgtk_pango/Pango/Wrappers/Font/index.html
Module Wrappers.Font
type t = [ `font | `object_ ] Gobject.objval serialize : t -> Glib_bytes.tSerializes the @font in a way that can be uniquely identified.
There are no guarantees about the format of the output across different versions of Pango.
The intended use of this function is testing, benchmarking and debugging. The format is not meant as a permanent storage format.
To recreate a font from its serialized form, use func@Pango.Font.deserialize.
val has_char : t -> int -> boolReturns whether the font provides a glyph for this character.
val get_metrics :
t ->
[ `language ] Gobject.obj option ->
[ `font_metrics ] Gobject.objGets overall metric information for a font.
Since the metrics may be substantially different for different scripts, a language tag can be provided to indicate that the metrics should be retrieved that correspond to the script(s) used by that language.
If @font is %NULL, this function gracefully sets some sane values in the output variables and returns.
val get_font_map : t -> [ `font_map | `object_ ] Gobject.obj optionGets the font map for which the font was created.
Note that the font maintains a *weak* reference to the font map, so if all references to font map are dropped, the font map will be finalized even if there are fonts created with the font map that are still alive. In that case this function will return %NULL.
It is the responsibility of the user to ensure that the font map is kept alive. In most uses this is not an issue as a `PangoContext` holds a reference to the font map.
val get_face : t -> [ `font_face | `object_ ] Gobject.objGets the `PangoFontFace` to which @font belongs.
val get_coverage :
t ->
[ `language ] Gobject.obj ->
[ `coverage | `object_ ] Gobject.objComputes the coverage map for a given font and language tag.
val describe_with_absolute_size : t -> [ `font_description ] Gobject.objReturns a description of the font, with absolute font size set in device units.
Use method@Pango.Font.describe if you want the font size in points.
val describe : t -> [ `font_description ] Gobject.objReturns a description of the font, with font size set in points.
Use method@Pango.Font.describe_with_absolute_size if you want the font size in device units.