Shrink the text

General TRichView support forum. Please post your questions here
Post Reply
armagnac
Posts: 12
Joined: Tue Mar 05, 2024 8:35 am

Shrink the text

Post 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
Sergey Tkachenko
Site Admin
Posts: 17602
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Shrink the text

Post 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.
Post Reply