Use the correct text size and height in tiny_skia
This commit is contained in:
parent
bdf18554fe
commit
cee0ed6469
1 changed files with 2 additions and 2 deletions
|
|
@ -406,8 +406,8 @@ impl Cache {
|
|||
|
||||
if let hash_map::Entry::Vacant(entry) = self.entries.entry(hash) {
|
||||
let metrics = cosmic_text::Metrics::new(
|
||||
key.line_height,
|
||||
(key.line_height * 1.2).max(f32::MIN_POSITIVE),
|
||||
key.size,
|
||||
key.line_height.max(f32::MIN_POSITIVE),
|
||||
);
|
||||
let mut buffer = cosmic_text::Buffer::new(font_system, metrics);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue