Use the correct text size and height in tiny_skia

This commit is contained in:
Josh Megnauth 2023-09-05 20:45:27 -04:00
parent bdf18554fe
commit cee0ed6469
No known key found for this signature in database
GPG key ID: 70813183462EFAD3

View file

@ -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);