rustybuzz/hb/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// Match harfbuzz code style.
#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
#![allow(non_snake_case)]

mod algs;
#[macro_use]
pub mod buffer;
mod aat_layout;
mod aat_layout_kerx_table;
mod aat_layout_morx_table;
mod aat_layout_trak_table;
mod aat_map;
pub mod common;
pub mod face;
mod glyph_set;
mod kerning;
mod machine_cursor;
mod ot;
mod ot_layout;
mod ot_layout_common;
mod ot_layout_gpos_table;
mod ot_layout_gsub_table;
mod ot_layout_gsubgpos;
mod ot_map;
mod ot_shape;
mod ot_shape_complex;
mod ot_shape_complex_arabic;
mod ot_shape_complex_arabic_table;
mod ot_shape_complex_hangul;
mod ot_shape_complex_hebrew;
mod ot_shape_complex_indic;
mod ot_shape_complex_indic_machine;
mod ot_shape_complex_indic_table;
mod ot_shape_complex_khmer;
mod ot_shape_complex_khmer_machine;
mod ot_shape_complex_myanmar;
mod ot_shape_complex_myanmar_machine;
mod ot_shape_complex_syllabic;
mod ot_shape_complex_thai;
mod ot_shape_complex_use;
mod ot_shape_complex_use_machine;
mod ot_shape_complex_use_table;
mod ot_shape_complex_vowel_constraints;
mod ot_shape_fallback;
mod ot_shape_normalize;
pub mod ot_shape_plan;
pub mod shape;
mod tag;
mod tag_table;
mod text_parser;
mod unicode;
mod unicode_norm;

use ttf_parser::Tag as hb_tag_t;

use self::buffer::hb_glyph_info_t;
use self::face::hb_font_t;

type hb_mask_t = u32;

use self::common::{script, Direction, Feature, Language, Script};

fn round(x: f32) -> f32 {
    #[cfg(feature = "std")]
    {
        x.round()
    }
    #[cfg(not(feature = "std"))]
    {
        libm::roundf(x)
    }
}