fonts: fix other platforms and tests
Ungh, shouldn't push before I'm awake :-/ refs: #648
This commit is contained in:
1 parent
d7c7c27203
commit
a5bb5be80a
4 files changed
+4
-1
No files matched your search
@@ -280,7 +280,7 @@ impl FontConfigInner {
|
||||
}
|
||||
|
||||
for attr in &attributes {
|
||||
if !attr.is_fallback && !loaded.contains(attr) {
|
||||
if !attr.is_synthetic && !attr.is_fallback && !loaded.contains(attr) {
|
||||
let styled_extra = if attr.bold || attr.italic {
|
||||
". A bold or italic variant of the font was requested; \
|
||||
TrueType and OpenType fonts don't have an automatic way to \
|
||||
|
||||
@@ -151,6 +151,7 @@ fn build_fallback_list_impl() -> anyhow::Result<Vec<FontDataHandle>> {
|
||||
bold: false,
|
||||
italic: false,
|
||||
is_fallback: true,
|
||||
is_synthetic: true,
|
||||
};
|
||||
if let Ok(descriptor) = descriptor_from_attr(&symbols) {
|
||||
if let Some(handle) = handle_from_descriptor(&descriptor) {
|
||||
|
||||
@@ -309,6 +309,7 @@ impl FontLocator for GdiFontLocator {
|
||||
italic: false,
|
||||
family: font.family_name(),
|
||||
is_fallback: true,
|
||||
is_synthetic: true,
|
||||
};
|
||||
|
||||
if !resolved.contains(&attr) {
|
||||
|
||||
@@ -469,6 +469,7 @@ mod test {
|
||||
family: "JetBrains Mono".into(),
|
||||
bold: false,
|
||||
is_fallback: false,
|
||||
is_synthetic: false,
|
||||
italic: false,
|
||||
})
|
||||
.unwrap()
|
||||
|
||||
Reference in new issue
Block a user