xceedsoftware / wpftoolkit

All the controls missing in WPF. Over 1 million downloads.
Other
3.87k stars 871 forks source link

Possible Font Size Issue with RichTextBox #801

Open xceedsoftware opened 7 years ago

xceedsoftware commented 7 years ago

pschimmel[CodePlex]
I'm developing a project where I use WPF data binding and the RichTextBox with RtfFormatter. When I set the font in the RichTextBoxFormatBar to Arial 10 for example, and use the data to export to a file, the output RichText is a text with font size 7.5.

xceedsoftware commented 7 years ago

Wehaveall[CodePlex]
Same problem. If I paste some text from Wordpad or Word, or even copy content of my richtexbox to one of these programs, the font size changes, in a reason of 1 by 1.33, always 1.33.

This situation is anoyinng me, because some values from a already saved rtf text are out of bound in my font size array, because, of broken values. I got a font size of 26.66666666666666, which stops my program.

Please, make the font size the same as Word or Wordpad, because is very dificult to make a text editor with those font values. Thanks.