mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-09 03:51:42 +00:00
style(text): M2.1: clarify font filter precedence
This commit is contained in:
1 parent
e3df030be9
commit
e7a599baea
1 file changed
+1
-1
@@ -1304,7 +1304,7 @@ fn index_font_file(path: &std::path::Path, meta: &std::fs::Metadata, out: &mut B
|
||||
return;
|
||||
}
|
||||
let ext = path.extension().and_then(std::ffi::OsStr::to_str).map(str::to_ascii_lowercase).unwrap_or_default();
|
||||
if !(matches!(ext.as_str(), "ttf" | "otf" | "ttc" | "otc") || path.extension().is_none() && starts_like_a_font(path)) {
|
||||
if !(matches!(ext.as_str(), "ttf" | "otf" | "ttc" | "otc") || (path.extension().is_none() && starts_like_a_font(path))) {
|
||||
return;
|
||||
}
|
||||
// Very large files are indexed all the same (Apple Color Emoji is ~180 MB and is where the
|
||||
|
||||
Reference in new issue
Block a user