Skip to content

Commit

Permalink
fix: rtl
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksenger committed Aug 10, 2023
1 parent cb8b70b commit 882c36d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wgpu/src/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,12 @@ impl Cache {
);

let bounds = measure(&buffer);
buffer.set_size(
font_system,
bounds.width.ceil(),
bounds.height.ceil(),
);

let _ = entry.insert(Entry { buffer, bounds });

for bounds in [
Expand Down

0 comments on commit 882c36d

Please sign in to comment.