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?
TMemo
is just a wrapper for a standard Windows control. Hence, it is not written in Delphi. Basically,TMemo
just tells the operating system "hey, can you place one of your cool multiline edit controls at these coordinates?". So a more appropriate title would have been "In Windows, is there a way..." – Andreas Rejbrand