Set correct text size for text in preedit window

This commit is contained in:
rhysd 2025-02-06 01:50:25 +09:00
parent 4bbb5cbc1f
commit fcdf53afde
4 changed files with 25 additions and 11 deletions

View file

@ -322,7 +322,9 @@ where
self.content = Renderer::Paragraph::with_spans(Text {
content: &spans,
bounds: Size::INFINITY,
size: renderer.default_size(),
size: preedit
.text_size
.unwrap_or_else(|| renderer.default_size()),
line_height: text::LineHeight::default(),
font: renderer.default_font(),
horizontal_alignment: alignment::Horizontal::Left,