summaryrefslogtreecommitdiff
path: root/src/env.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-03-22 14:08:50 +0100
committerLaurenz <laurmaedje@gmail.com>2021-03-22 14:08:50 +0100
commit98336bfafb947f0b4d55a79c422b915bb417c185 (patch)
treebf0ead89a3d7eed3d8bb87d013c2a813633c75e4 /src/env.rs
parent39f55481ed7bc5ebc6d310924e90e7b6c0760d3b (diff)
Better font family definitions ✒
Diffstat (limited to 'src/env.rs')
-rw-r--r--src/env.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/env.rs b/src/env.rs
index 3db71e08..75e2853a 100644
--- a/src/env.rs
+++ b/src/env.rs
@@ -7,13 +7,13 @@ use std::fs;
use std::io::Cursor;
use std::path::{Path, PathBuf};
-use fontdock::{ContainsChar, FaceFromVec, FaceId, FontSource};
+use fontdock::{FaceFromVec, FaceId, FontSource};
use image::io::Reader as ImageReader;
use image::{DynamicImage, GenericImageView, ImageFormat};
use ttf_parser::Face;
#[cfg(feature = "fs")]
-use fontdock::fs::{FsIndex, FsSource};
+use fontdock::{FsIndex, FsSource};
/// Encapsulates all environment dependencies (fonts, resources).
#[derive(Debug)]
@@ -83,12 +83,6 @@ impl FaceFromVec for FaceBuf {
}
}
-impl ContainsChar for FaceBuf {
- fn contains_char(&self, c: char) -> bool {
- self.get().glyph_index(c).is_some()
- }
-}
-
/// Simplify font loader construction from an [`FsIndex`].
#[cfg(feature = "fs")]
pub trait FsIndexExt {