package camlimages
Image processing library
Install
Dune Dependency
Authors
Maintainers
Sources
camlimages-5.0.3.tar.bz2
sha256=b8203da78a9733488e40fafccfafb874c9ebafd8a5f1fa1d9a46ae2ac241e97a
md5=7dd5aa1944d01d2e908d4caa1e1bba78
doc/camlimages.freetype/Freetype/index.html
Module Freetype
Source
type for Freetype library
init ()
initializes the Freetype library. The returned library is required to load fonts.
Type for face
Source
type face_info = {
num_faces : int;
num_glyphs : int;
family_name : string;
style_name : string;
has_horizontal : bool;
has_vertical : bool;
has_kerning : bool;
is_scalable : bool;
is_sfnt : bool;
is_fixed_width : bool;
has_fixed_sizes : bool;
has_fast_glyphs : bool;
has_glyph_names : bool;
has_multiple_masters : bool;
}
new_face library fontfile n
loads n
-th font stored in the font file fontfile
, and returns its face and face information.
Returns number of glyphs stored in the face. Equivalent to face_info.num_glyphs
set_char_size face charw charh resh resv
sets the character size of face
. charw
and charh
are the points of the characters in width and height. resh
and resv
are the horizontal and vertical resolution (in dpi)
set_pixel_sizes face pixw pixh
also sets the character size of face
. pixw
and pixh
are standard width and height of characters in pixels.
matrix and vector
bitmap ops
glyph metrics
Source
type glyph_metrics = {
gm_width : float;
gm_height : float;
gm_hori : bearing_advance;
gm_vert : bearing_advance;
}
size metrics
outline info
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>