Home
last modified time | relevance | path

Searched refs:FontResult (Results 1 – 4 of 4) sorted by relevance

/external/rust/crates/plotters/src/style/font/
Dfont_desc.rs13 pub type FontResult<T> = Result<T, FontError>; typedef
20 data: FontResult<FontDataInternal>,
169 pub fn layout_box(&self, text: &str) -> FontResult<((i32, i32), (i32, i32))> { in layout_box()
179 pub fn box_size(&self, text: &str) -> FontResult<(u32, u32)> { in box_size()
191 ) -> FontResult<Result<(), E>> { in draw()
Dttf.rs17 type FontResult<T> = Result<T, FontError>; typedef
41 static ref CACHE: RwLock<HashMap<String, FontResult<Font<'static>>>> =
52 fn load_font_data(face: FontFamily, style: FontStyle) -> FontResult<Font<'static>> { in load_font_data()
120 pub fn clear_font_cache() -> FontResult<()> { in clear_font_cache()
193 fn test_font_cache() -> FontResult<()> { in test_font_cache()
/external/rust/crates/plotters/src/element/
Dtext.rs5 use crate::style::{FontDesc, FontResult, LayoutBox, TextStyle};
90 pub fn estimate_dimension(&self) -> FontResult<(i32, i32)> { in estimate_dimension()
157 pub fn compute_line_layout(&self) -> FontResult<Vec<LayoutBox>> { in compute_line_layout()
/external/rust/crates/plotters/src/style/
Dmod.rs17 FontDesc, FontError, FontFamily, FontResult, FontStyle, FontTransform, IntoFont, LayoutBox,