cairo/font/
mod.rs

1// Take a look at the license at the top of the repository in the LICENSE file.
2
3mod font_extents;
4mod font_face;
5mod font_options;
6mod glyph;
7mod scaled_font;
8mod text_cluster;
9mod text_extents;
10mod user_fonts;
11
12/* TODO
13 Allocates an array of cairo_glyph_t's. This function is only useful in
14 implementations of cairo_user_scaled_font_text_to_glyphs_func_t where the user
15 needs to allocate an array of glyphs that cairo will free. For all other uses,
16 user can use their own allocation method for glyphs.
17
18
19impl Glyph {
20
21    //pub fn cairo_glyph_allocate(num_glyphs: c_int) -> *Glyph;
22
23    //pub fn cairo_glyph_free(glyphs: *Glyph);
24}
25
26 Allocates an array of cairo_glyph_t's. This function is only useful in
27 implementations of cairo_user_scaled_font_text_to_glyphs_func_t where the user
28 needs to allocate an array of glyphs that cairo will free. For all other uses,
29 user can use their own allocation method for glyphs.
30
31impl TextCluster {
32    //pub fn cairo_text_cluster_allocate(num_clusters: c_int) -> *TextCluster;
33
34    //pub fn cairo_text_cluster_free(clusters: *TextCluster);
35}
36*/
37pub use self::{
38    font_extents::FontExtents, font_face::FontFace, font_options::FontOptions, glyph::Glyph,
39    scaled_font::ScaledFont, text_cluster::TextCluster, text_extents::TextExtents,
40    user_fonts::UserFontFace,
41};
42pub use crate::enums::{
43    Antialias, FontSlant, FontType, FontWeight, HintMetrics, HintStyle, SubpixelOrder,
44    TextClusterFlags,
45};