Home
last modified time | relevance | path

Searched refs:FontError (Results 1 – 11 of 11) sorted by relevance

/external/rust/crates/plotters/src/style/font/
Dttf.rs17 type FontResult<T> = Result<T, FontError>;
20 pub enum FontError { enum
26 impl std::fmt::Display for FontError { implementation
29 FontError::LockError => write!(fmt, "Could not lock mutex"), in fmt()
30 FontError::NoSuchFont(family, style) => { in fmt()
33 FontError::FontLoadError(e) => write!(fmt, "Font loading error: {}", e), in fmt()
38 impl std::error::Error for FontError {} implementation
79 || FontError::NoSuchFont(face.as_str().to_owned(), style.as_str().to_owned()); in load_font_data()
104 .map_err(|err| FontError::FontLoadError(Arc::new(err)))? in load_font_data()
106 .map_err(|err| FontError::FontLoadError(Arc::new(err))); in load_font_data()
[all …]
Dnaive.rs4 pub struct FontError; struct
6 impl std::fmt::Display for FontError { implementation
13 impl std::error::Error for FontError {} implementation
19 type ErrorType = FontError;
20 fn new(family: FontFamily, style: FontStyle) -> Result<Self, FontError> { in new() argument
Dweb.rs6 pub enum FontError { enum
10 impl std::fmt::Display for FontError { implementation
18 impl std::error::Error for FontError {} implementation
24 type ErrorType = FontError;
25 fn new(family: FontFamily, style: FontStyle) -> Result<Self, FontError> { in new() argument
Dfont_desc.rs10 pub type FontError = <FontDataInternal as FontData>::ErrorType; typedef
13 pub type FontResult<T> = Result<T, FontError>;
/external/rust/crates/plotters/src/style/
Dtext.rs2 use super::font::{FontDesc, FontError, FontFamily, FontStyle, FontTransform};
141 type FontError = FontError; typedef
159 fn layout_box(&self, text: &str) -> Result<((i32, i32), (i32, i32)), Self::FontError> { in layout_box() argument
176 ) -> Result<Result<(), E>, Self::FontError> { in draw() argument
Dmod.rs17 FontDesc, FontError, FontFamily, FontResult, FontStyle, FontTransform, IntoFont, LayoutBox,
/external/rust/crates/plotters-backend/src/
Dlib.rs85 FontError(Box<dyn Error + Send + Sync + 'static>), enumerator
92 DrawingErrorKind::FontError(e) => write!(fmt, "Font loading error: {}", e), in fmt()
233 .map_err(|e| DrawingErrorKind::FontError(Box::new(e)))?; in draw_text()
259 Err(font_error) => Err(DrawingErrorKind::FontError(Box::new(font_error))), in draw_text()
278 .map_err(|e| DrawingErrorKind::FontError(Box::new(e)))?; in estimate_text_size()
Dtext.rs209 type FontError: Error + Sync + Send + 'static; typedef
236 fn layout_box(&self, text: &str) -> Result<((i32, i32), (i32, i32)), Self::FontError>; in layout_box() argument
243 ) -> Result<Result<(), E>, Self::FontError>; in draw() argument
/external/rust/crates/plotters/src/chart/
Dseries.rs201 DrawingAreaErrorKind::BackendError(DrawingErrorKind::FontError(Box::new(e))) in draw()
231 DrawingAreaErrorKind::BackendError(DrawingErrorKind::FontError(Box::new(e))) in draw()
/external/rust/crates/plotters-svg/src/
Dsvg.rs411 font.layout_box(text).map_err(DrawingErrorKind::FontError)?; in draw_text()
/external/rust/crates/plotters/
DCHANGELOG.md124 - `FontError` from rusttype isn't `Sync` and `Send`. We don't have trait bound to ensure this. (Th…