package camlimages
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Image processing library
Install
dune-project
Dependency
Authors
Maintainers
Sources
camlimages-5.0.1.tar.bz2
sha256=fea0bbb53746a29fb546946d34d43ed0907db8326ff95004a11f7ea666f8d541
md5=c06eec6b0e12a993d4677203e733512a
doc/camlimages.freetype/Freetype/index.html
Module Freetype
val init : unit -> tinit () initializes the Freetype library. The returned library is required to load fonts.
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.
val get_num_glyphs : face -> intReturns number of glyphs stored in the face. Equivalent to face_info.num_glyphs
val set_char_size : face -> float -> float -> int -> int -> unitset_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)
val set_pixel_sizes : face -> int -> int -> unitset_pixel_sizes face pixw pixh also sets the character size of face. pixw and pixh are standard width and height of characters in pixels.
val int_of_char_index : char_index -> intval char_index_of_int : int -> char_indexval get_char_index : face -> int -> char_indexval load_glyph : face -> char_index -> load_flag list -> float * floatval render_glyph_of_face : face -> render_mode -> unitval render_glyph :
face ->
char_index ->
load_flag list ->
render_mode ->
float * floatval render_char : face -> int -> load_flag list -> render_mode -> float * floatval matrix_rotate : float -> matrixbitmap ops
val get_bitmap_info : face -> bitmap_infoval read_bitmap : face -> int -> int -> intglyph metrics
type glyph_metrics = {gm_width : float;gm_height : float;gm_hori : bearing_advance;gm_vert : bearing_advance;
}val get_glyph_metrics : face -> glyph_metricssize metrics
val get_size_metrics : face -> size_metricsval get_outline_contents : face -> outline_contents sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>