summaryrefslogtreecommitdiff
path: root/src/layout/mod.rs
diff options
context:
space:
mode:
authorLaurenz Mädje <laurmaedje@gmail.com>2019-06-02 19:51:37 +0200
committerLaurenz Mädje <laurmaedje@gmail.com>2019-06-02 19:51:37 +0200
commit236ebab23a106ca817de527ce6b6440d3b66c150 (patch)
treec2fd931722f8215ebc87ab0404283c846df00fb6 /src/layout/mod.rs
parent3e9f42661ed19464f1a33c279b315dae8d1e6e83 (diff)
Add more fonts 📜
Diffstat (limited to 'src/layout/mod.rs')
-rw-r--r--src/layout/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs
index ab27314d..1c1f743e 100644
--- a/src/layout/mod.rs
+++ b/src/layout/mod.rs
@@ -144,8 +144,8 @@ impl Default for PageStyle {
/// The error type for layouting.
pub enum LayoutError {
- /// There was no suitable font.
- NoSuitableFont,
+ /// There was no suitable font for the given character.
+ NoSuitableFont(char),
/// An error occured while gathering font data.
Font(FontError),
}
@@ -156,7 +156,7 @@ pub type LayoutResult<T> = Result<T, LayoutError>;
error_type! {
err: LayoutError,
show: f => match err {
- LayoutError::NoSuitableFont => write!(f, "no suitable font"),
+ LayoutError::NoSuitableFont(c) => write!(f, "no suitable font for '{}'", c),
LayoutError::Font(err) => write!(f, "font error: {}", err),
},
source: match err {