cairo/font/
mod.rs

1// Copyright 2013-2015, The Gtk-rs Project Developers.
2// See the COPYRIGHT file at the top-level directory of this distribution.
3// Licensed under the MIT license, see the LICENSE file or <http://opensource.org/licenses/MIT>
4
5mod font_face;
6mod font_options;
7mod scaled_font;
8
9pub use enums::{
10    Antialias, FontSlant, FontType, FontWeight, HintMetrics, HintStyle, SubpixelOrder,
11    TextClusterFlags,
12};
13
14pub use ffi::{FontExtents, Glyph, TextCluster, TextExtents};
15
16/* TODO
17 Allocates an array of cairo_glyph_t's. This function is only useful in
18 implementations of cairo_user_scaled_font_text_to_glyphs_func_t where the user
19 needs to allocate an array of glyphs that cairo will free. For all other uses,
20 user can use their own allocation method for glyphs.
21
22
23impl Glyph {
24
25    //pub fn cairo_glyph_allocate(num_glyphs: c_int) -> *Glyph;
26
27    //pub fn cairo_glyph_free(glyphs: *Glyph);
28}
29
30 Allocates an array of cairo_glyph_t's. This function is only useful in
31 implementations of cairo_user_scaled_font_text_to_glyphs_func_t where the user
32 needs to allocate an array of glyphs that cairo will free. For all other uses,
33 user can use their own allocation method for glyphs.
34
35impl TextCluster {
36    //pub fn cairo_text_cluster_allocate(num_clusters: c_int) -> *TextCluster;
37
38    //pub fn cairo_text_cluster_free(clusters: *TextCluster);
39}
40*/
41
42pub use self::font_face::FontFace;
43pub use self::font_options::FontOptions;
44pub use self::scaled_font::ScaledFont;