diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-09-19 11:31:37 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-09-19 11:36:59 +0200 |
| commit | 30be75c6687f1e03cf867d258b3ddba353cc7aa2 (patch) | |
| tree | 51afd42ae8875811ae51974e66681a17990de7f2 /src/library/text/shift.rs | |
| parent | 4ec3bcee487c1567bc6551f81d4f69eee4379076 (diff) | |
Renaming
`Face` -> `Font`
`FaceId` -> `FontId`
`SourceFile` -> `Source`
Diffstat (limited to 'src/library/text/shift.rs')
| -rw-r--r-- | src/library/text/shift.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/text/shift.rs b/src/library/text/shift.rs index 744479f2..fde969d3 100644 --- a/src/library/text/shift.rs +++ b/src/library/text/shift.rs @@ -94,8 +94,8 @@ fn search_text(content: &Content, mode: ScriptKind) -> Option<EcoString> { /// given string. fn is_shapable(fonts: &mut FontStore, text: &str, styles: StyleChain) -> bool { for family in styles.get(TextNode::FAMILY).iter() { - if let Some(face_id) = fonts.select(family.as_str(), variant(styles)) { - let ttf = fonts.get(face_id).ttf(); + if let Some(font_id) = fonts.select(family.as_str(), variant(styles)) { + let ttf = fonts.get(font_id).ttf(); return text.chars().all(|c| ttf.glyph_index(c).is_some()); } } |
