In Delphi, Is there a way to adjust the line spacing of a TMemo?
Posted
by
Kieran
on Stack Overflow
See other posts from Stack Overflow
or by Kieran
Published on 2010-12-21T07:41:36Z
Indexed on
2010/12/21
7:54 UTC
Read the original article
Hit count: 290
I'm working with a TMemo component to display some text in a limited space. Currently it's using a truetype font which doesn't ship with windows and is installed by the app when it runs.
On my PC (Running Windows XP), the spacing between each line of text seems to be about eight pixels. On a different PC running Windows 7, the line spacing seems to be about 14 pixels, which is pushing the bottom row of text out of visibility on the memo.
So, My question is really this:
- Is this caused by the different versions of Windows? It's all I could think that was different.
- Is there some way I can adjust this value so it would be consistent across all instances of the application, wherever it was running?
Alternatatively, is there a different component I could use which might let me tweak this value?
© Stack Overflow or respective owner