diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-01-04 22:43:26 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-01-04 22:43:26 +0100 |
| commit | 7b84f3b553de672e5374e142467f63b10009aeca (patch) | |
| tree | fd8265abc8c62213520628babc0cfc3a6f8e98aa /src/layout/mod.rs | |
| parent | 5dfaffc5bdfa811c135f0140c0a0ba917eb8c70f (diff) | |
Adopt new font loading engine ⚙
Diffstat (limited to 'src/layout/mod.rs')
| -rw-r--r-- | src/layout/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 53c3e91e..be1ed43c 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -2,7 +2,7 @@ use std::io::{self, Write}; use smallvec::SmallVec; -use toddle::query::SharedFontLoader; +use toddle::query::{SharedFontLoader, FontIndex}; use crate::size::{Size, Size2D, SizeBox}; use crate::style::LayoutStyle; @@ -58,7 +58,7 @@ pub struct Layout { impl Layout { /// Returns a vector with all used font indices. - pub fn find_used_fonts(&self) -> Vec<usize> { + pub fn find_used_fonts(&self) -> Vec<FontIndex> { let mut fonts = Vec::new(); for action in &self.actions { if let LayoutAction::SetFont(index, _) = action { |
