I have begun writing an app using Lazarus. I've noticed that as I move between environments (in my case Windows and Linux), forms do not look so good. If I create on Windows, the fonts are too large on Linux. If I create on Linux, fonts are too small on Windows. In both cases, some items do not line up when I switch.
I was wondering how other developers handle this. What I began to do is put in a $IFDEF WINDOWS and a $IFDEF LINUX and then I set the fonts at startup. But that does not always fix the problem (making a button large enough for Windows font may be too small or too large for the Linux font). But it worked on the app so far.
Do you set the fonts and sizes in code?
Do you code fully in one environment and only build in the other so you realign and modify fonts prior to compiling?
Do you keep two copies of the lfm file?
Something else?
Thanks