Add Auto strategy to text::Shaping

This commit is contained in:
Héctor Ramón Jiménez 2025-08-30 18:15:12 +02:00
parent d31a7b6ae8
commit bc7d64987e
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
8 changed files with 47 additions and 11 deletions

View file

@ -55,7 +55,7 @@ impl Cache {
font_system,
key.content,
&text::to_attributes(key.font),
text::to_shaping(key.shaping),
text::to_shaping(key.shaping, key.content),
);
let bounds = text::align(&mut buffer, font_system, key.align_x);

View file

@ -88,7 +88,7 @@ impl core::text::Paragraph for Paragraph {
font_system.raw(),
text.content,
&text::to_attributes(text.font),
text::to_shaping(text.shaping),
text::to_shaping(text.shaping, text.content),
);
let min_bounds =
@ -158,7 +158,7 @@ impl core::text::Paragraph for Paragraph {
(span.text.as_ref(), attrs.metadata(i))
}),
&text::to_attributes(text.font),
text::to_shaping(text.shaping),
cosmic_text::Shaping::Advanced,
None,
);