Page 1 of 1

Shrink the text

Posted: Thu Mar 21, 2024 11:11 am
by armagnac
Hi,

Because I cannot exceed an screen height corresponding to 12 lines Times New Roman, size 14, in my RichViewEdit, is it a way to shrink the fonts of the text ? So text with 15 lines may contain in the expected space (if text becomes Times New Roman 12 or 11 maybe).

Thank you

Re: Shrink the text

Posted: Thu Mar 21, 2024 2:34 pm
by Sergey Tkachenko
Do you want to change text size dynamically? I.e., make text in long documents smaller, and in short documents larger?

If yes, the simplest way is not changing font size, but apply zooming, by changing DocumentPixelsPerInch property.
Smaller values make text smaller.
After changing this property, call Reformat.