What fonts to use in Linux and how to apply them lazarus / 32-Linux ---------------------------------------------------------------------- CM630 · 2025-06-03 09:22 I am building an app in Linux (so far used only in Windows). The fonts in (the distro that I use with GTK) are extremely wide... So I wonder what to do. Is it possible to change the "default" font in Linux that is used by the app? Or if I use non-default font for all buttons in Windows, what will happen to it when I build and execute the app in Linux (fonts with the same names will not be present there)? Also, it seems that the buttons have very huge borders in GTK, which actually brings teh necessity of even thinner fonts. ---------------------------------------------------------------------- Thaddy · 2025-06-03 09:58 Always try to use the default font from your distribution, but that said, if that is ugly, simply choose a font that you like. Actually, you need to choose at least two fonts: one GUI, one terminal. I generally you the default system fonts for both unless I write special purpose thingies like games. for the lazarus ide I use consolas. The font property has subproperties to change the size. ---------------------------------------------------------------------- wp · 2025-06-03 10:48 Try to layout your forms in a way that the size of the font does not matter. Use the anchor editor to link controls together and use Autosizing to adjust size correctly. ---------------------------------------------------------------------- Leledumbo · 2025-06-04 19:30 While you can enforce a font, my suggestion for cross platform programming is to use the default to make your app inline with the rest of the system. What your app needs to do is, however, adapting to various available fonts. Learn to use autosizing and layouting, properties like AutoSize, Anchors, ChildSizing, etc. could help a lot.