rustybuzz/hb/
mod.rs
1#![allow(non_camel_case_types)]
3#![allow(non_upper_case_globals)]
4#![allow(non_snake_case)]
5
6mod algs;
7#[macro_use]
8pub mod buffer;
9mod aat_layout;
10mod aat_layout_kerx_table;
11mod aat_layout_morx_table;
12mod aat_layout_trak_table;
13mod aat_map;
14pub mod common;
15pub mod face;
16mod glyph_set;
17mod kerning;
18mod machine_cursor;
19mod ot;
20mod ot_layout;
21mod ot_layout_common;
22mod ot_layout_gpos_table;
23mod ot_layout_gsub_table;
24mod ot_layout_gsubgpos;
25mod ot_map;
26mod ot_shape;
27mod ot_shape_complex;
28mod ot_shape_complex_arabic;
29mod ot_shape_complex_arabic_table;
30mod ot_shape_complex_hangul;
31mod ot_shape_complex_hebrew;
32mod ot_shape_complex_indic;
33mod ot_shape_complex_indic_machine;
34mod ot_shape_complex_indic_table;
35mod ot_shape_complex_khmer;
36mod ot_shape_complex_khmer_machine;
37mod ot_shape_complex_myanmar;
38mod ot_shape_complex_myanmar_machine;
39mod ot_shape_complex_syllabic;
40mod ot_shape_complex_thai;
41mod ot_shape_complex_use;
42mod ot_shape_complex_use_machine;
43mod ot_shape_complex_use_table;
44mod ot_shape_complex_vowel_constraints;
45mod ot_shape_fallback;
46mod ot_shape_normalize;
47pub mod ot_shape_plan;
48pub mod shape;
49mod tag;
50mod tag_table;
51mod text_parser;
52mod unicode;
53mod unicode_norm;
54
55use ttf_parser::Tag as hb_tag_t;
56
57use self::buffer::hb_glyph_info_t;
58use self::face::hb_font_t;
59
60type hb_mask_t = u32;
61
62use self::common::{script, Direction, Feature, Language, Script};
63
64fn round(x: f32) -> f32 {
65 #[cfg(feature = "std")]
66 {
67 x.round()
68 }
69 #[cfg(not(feature = "std"))]
70 {
71 libm::roundf(x)
72 }
73}