Add Auto strategy to text::Shaping
This commit is contained in:
parent
d31a7b6ae8
commit
bc7d64987e
8 changed files with 47 additions and 11 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue