Use external expanded font metrics in native paragraph layout
This commit is contained in:
1 parent
4ad66c120d
commit
12d9eb6a54
9 files changed
+326
-116
No files matched your search
@@ -1685,6 +1685,13 @@ impl State {
|
||||
pub fn group_depth(&self) -> usize {
|
||||
self.groups.len()
|
||||
}
|
||||
pub(super) fn font_defaults(&self) -> super::FontIntegers {
|
||||
super::FontIntegers {
|
||||
hyphen: self.parameter(Parameter::Defaulthyphenchar).width(),
|
||||
skew: self.parameter(Parameter::Defaultskewchar).width(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn fingerprint(&self) -> u64 {
|
||||
let mut hash = FingerprintHasher::default();
|
||||
self.hash(&mut hash);
|
||||
|
||||
Reference in new issue
Block a user