mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-01 20:31:27 +00:00
parent
d2e839a7c4
commit
1efe8c8d5f
4 changed files with 15 additions and 2 deletions
|
|
@ -279,6 +279,7 @@ pub async fn run_passes(
|
|||
});
|
||||
|
||||
// This is not perfect, as this includes translations that may not be used.
|
||||
#[cfg(feature = "bundle-translations")]
|
||||
if let Some(translation_builder) = doc.translation_builder.as_ref() {
|
||||
translation_builder.collect_characters_seen(&mut characters_seen);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -65,8 +65,12 @@ impl GlyphRenderer for PixelFont {
|
|||
sdf: self.bitmap_font.sdf,
|
||||
})
|
||||
}
|
||||
fn scale_delta(&self) -> super::Fixed<u16, 8> {
|
||||
super::Fixed::from_integer(self.glyphs.pixel_size as u16) / self.pixel_size.get() as u16
|
||||
fn scale_delta(&self) -> Fixed<u16, 8> {
|
||||
Fixed::try_from_fixed(Fixed::<u32, 8>::from_fraction(
|
||||
self.glyphs.pixel_size as u32,
|
||||
self.pixel_size.get() as u32,
|
||||
))
|
||||
.unwrap()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -28,4 +28,12 @@ export component TestCase inherits Window {
|
|||
font-italic: true;
|
||||
}
|
||||
}
|
||||
|
||||
// Issue #7936
|
||||
Text {
|
||||
text: "s";
|
||||
font-size: 256px;
|
||||
color: red;
|
||||
opacity: 0.1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 3.3 KiB |
Loading…
Add table
Add a link
Reference in a new issue