On 23/05/2011 17:10, Alexander Klenin wrote: > > But it is absent on Windows, so no better than Arial as a cross-platform font
It's free, so deploy it with your application, or use Arial under Windows and Liberation under Linux/*BSD etc. As the wiki site says, they are metric compatible so look pretty much identical. I guess this is where LCL fails miserably. For example, in fpGUI I have "font descriptions" (aka Font Aliases) just like I have "color aliases". By the latter I mean colors like clButtonFace, clWindow etc.. They are numbers to LCL, but depending on the OS and theme, they mean some platform/theme RGB color at runtime. Just like that, fpGUI uses font descriptions/aliases: eg: #Edit1, #Label1, #Grid etc.. In the case of fpGUI #Edit1 can mean different fonts and styles depending on the OS or theme being used. Currently under Windows '#Edit1' means 'Arial-8' and under Linux it means 'Liberation Sans-10' So form a developer point of view, when I want to set a font I use #Edit1 instead of a font name - thus giving be a cross-platform way of working with fonts. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
