I have a small WPF application that hosts a RichTextBox:
<RichTextBox SpellCheck.IsEnabled="True"
FontFamily="Verdana"
AcceptsTab="True"
AcceptsReturn="True"
FontSize="14" />
As shown the code snippet above, I set the font size to 14. If I copy text from this RichTextBox to Microsoft Word or Microsoft WordPad, the font size is reported to be 10.5. Similar oddities persist if I paste text from Word or WordPad. I have verified that the text being selected from my app is sized at 14. Any help would be greatly appreciated!
Using FontSize
and assigning a simple number means the unit is pixels. Try setting Fontsize="14pt"
instead.
Other units: px
, in
, cm
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With