From f051f68850d43d4c2db569ae787bd6d98ac55251 Mon Sep 17 00:00:00 2001 From: Shark Date: Wed, 4 Sep 2024 22:06:44 +0200 Subject: [PATCH] small fixes --- Cargo.lock | 8 ++++---- crates/gosub_taffy/src/compute/inline.rs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5d648c01c..0474e46a4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1735,7 +1735,7 @@ version = "0.1.0" dependencies = [ "gosub_html5", "gosub_shared", - "gosub_typeface", + "gosub_typeface", "image", "raw-window-handle", "smallvec", @@ -1754,7 +1754,7 @@ dependencies = [ "gosub_shared", "gosub_styling", "image", - "log", + "log", "url", "wasm-bindgen-futures", "web-sys", @@ -1838,8 +1838,8 @@ dependencies = [ "gosub_render_backend", "gosub_shared", "gosub_styling", - "gosub_typeface", - "log", + "gosub_typeface", + "log", "parley", "regex", "taffy", diff --git a/crates/gosub_taffy/src/compute/inline.rs b/crates/gosub_taffy/src/compute/inline.rs index 6ed3d9336..d6803ab8e 100644 --- a/crates/gosub_taffy/src/compute/inline.rs +++ b/crates/gosub_taffy/src/compute/inline.rs @@ -298,7 +298,7 @@ pub fn compute_inline_layout>( let gl = Glyph { id: g.id, x: g.x + offset, - y: g.y + fs, + y: g.y, }; offset += g.advance; @@ -381,7 +381,7 @@ pub fn compute_inline_layout>( border: Rect::ZERO, location: Point { x: run.offset(), - y: 0.0, + y: run_y, }, order: 0, padding: Rect::ZERO,