wr_glyph_rasterizer/
lib.rs

1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5//! A glyph rasterizer for webrender
6//!
7//! ## Overview
8//!
9//! ## Usage
10//!
11
12#![allow(unknown_lints, mismatched_lifetime_syntaxes)]
13
14mod gamma_lut;
15mod rasterizer;
16mod telemetry;
17mod types;
18
19pub mod profiler;
20
21pub use rasterizer::*;
22pub use types::*;
23
24#[macro_use]
25extern crate malloc_size_of_derive;
26#[macro_use]
27extern crate tracy_rs;
28#[macro_use]
29extern crate log;
30#[macro_use]
31extern crate lazy_static;
32#[macro_use]
33extern crate smallvec;
34
35#[cfg(any(feature = "serde"))]
36#[macro_use]
37extern crate serde;
38
39extern crate malloc_size_of;
40
41pub mod platform {
42    #[cfg(any(target_os = "macos", target_os = "ios"))]
43    pub use crate::platform::macos::font;
44    #[cfg(any(target_os = "android", all(unix, not(any(target_os = "ios", target_os = "macos")))))]
45    pub use crate::platform::unix::font;
46    #[cfg(target_os = "windows")]
47    pub use crate::platform::windows::font;
48
49    #[cfg(any(target_os = "ios", target_os = "macos"))]
50    pub mod macos {
51        pub mod font;
52    }
53    #[cfg(any(target_os = "android", all(unix, not(any(target_os = "macos", target_os = "ios")))))]
54    pub mod unix {
55        pub mod font;
56    }
57    #[cfg(target_os = "windows")]
58    pub mod windows {
59        pub mod font;
60    }
61}