Skip to content

Commit

Permalink
bump cosmic-text
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhou121 committed Oct 25, 2023
1 parent 723d653 commit 0d2b7e7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion renderer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ license.workspace = true
resvg = "0.33.0"
image = { version = "0.24", features = ["jpeg", "png"] }
peniko = { git = "https://github.com/linebender/peniko", rev = "cafdac9a211a0fb2fec5656bd663d1ac770bcc81" }
cosmic-text = { git = "https://github.com/lapce/cosmic-text", rev = "f645d6d504f3de6abebadb687b05c33021ac3e42" }
cosmic-text = { git = "https://github.com/lapce/cosmic-text", rev = "5bfa288f19970a0b482ad75d5f460ad2c4e08900" }
# cosmic-text = { path = "../../cosmic-text" }
2 changes: 1 addition & 1 deletion src/keyboard.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub use winit::keyboard::{Key, KeyCode, ModifiersState, NamedKey, NativeKey};
pub use winit::keyboard::{Key, KeyCode, ModifiersState, NamedKey, NativeKey, PhysicalKey};

#[derive(Debug, Clone, Eq, PartialEq, Hash)]
pub struct KeyEvent {
Expand Down
2 changes: 1 addition & 1 deletion vger/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ futures = "0.3.26"
anyhow = "1.0.69"
peniko = { git = "https://github.com/linebender/peniko", rev = "cafdac9a211a0fb2fec5656bd663d1ac770bcc81" }
swash = "0.1.8"
vger = { git = "https://github.com/lapce/vger-rs", rev = "82df6450901b2cff0bd64080b9ca9fb3b7075cc2" }
vger = { git = "https://github.com/lapce/vger-rs", rev = "4ef94b8682ef5df1b3d03fc7debfe74f056d24aa" }
# vger = { path = "../../vger-rs" }
image = { version = "0.24", features = ["jpeg", "png"] }
floem_renderer = { path = "../renderer" }
4 changes: 4 additions & 0 deletions vger/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,10 @@ impl Renderer for VgerRenderer {
}
}

if glyph_run.is_tab {
continue;
}

if let Some(paint) = self.brush_to_paint(glyph_run.color) {
let glyph_x = x * self.scale as f32;
let (new_x, subpx_x) = SubpixelBin::new(glyph_x);
Expand Down

0 comments on commit 0d2b7e7

Please sign in to comment.