Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into vi-editor
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Nov 17, 2023
2 parents 1201d0c + e6987ad commit 66a6803
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ registries = [
# https://embarkstudios.github.io/cargo-deny/checks/bans/cfg.html
[bans]
# Lint level for when multiple versions of the same crate are detected
multiple-versions = "warn"
multiple-versions = "deny"
# Lint level for when a crate version requirement is `*`
wildcards = "allow"
# The graph highlighting used when creating dotgraphs for crates
Expand Down
8 changes: 6 additions & 2 deletions src/font/fallback/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,14 @@ impl<'a> Iterator for FontFallbackIter<'a> {
}
// Set a monospace fallback if Monospace family is not found
if self.default_families[self.default_i - 1] == &Family::Monospace
&& self.font_system.db().face(*id).map(|f| f.monospaced) == Some(true)
&& monospace_fallback.is_none()
{
monospace_fallback = Some(id);
if let Some(face_info) = self.font_system.db().face(*id) {
// Don't use emoji fonts as Monospace
if face_info.monospaced && !face_info.post_script_name.contains("Emoji") {
monospace_fallback = Some(id);
}
}
}
}
// If default family is Monospace fallback to first monospaced font
Expand Down
1 change: 1 addition & 0 deletions src/shape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ fn shape_skip(
.map(|(i, codepoint)| {
let glyph_id = charmap.map(codepoint);
let x_advance = glyph_metrics.advance_width(glyph_id);
let attrs = attrs_list.get_span(i);

ShapeGlyph {
start: i,
Expand Down

0 comments on commit 66a6803

Please sign in to comment.