We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
f64
1 parent ae0ead8 commit a45124dCopy full SHA for a45124d
platforms/windows/src/text.rs
@@ -452,9 +452,9 @@ impl ITextRangeProvider_Impl for PlatformRange_Impl {
452
UIA_FontNameAttributeId => {
453
self.read(|range| Ok(Variant::from(range.font_family()).into()))
454
}
455
- UIA_FontSizeAttributeId => {
456
- self.read(|range| Ok(Variant::from(range.font_size()).into()))
457
- }
+ UIA_FontSizeAttributeId => self.read(|range| {
+ Ok(Variant::from(range.font_size().map(|value| value as f64)).into())
+ }),
458
UIA_FontWeightAttributeId => self.read(|range| {
459
Ok(Variant::from(range.font_weight().map(|value| value as i32)).into())
460
}),
0 commit comments