Trouble with DejaVu fonts lazarus / 31-LCL ---------------------------------------------------------------------- dogriz · 2014-04-07 09:06 I have a problem with DejaVu fonts in Lazarus 1.2 (gtk2) (Debian Jessie). First thing I don't understand - is the way fonts are displayed in FontDialog - the list is different compared to LibreOffice Writer (Images attached). And the problem is I can't apply (for example) DejaVu Sans - Condensed or ExtraLight. When I select "Condensed" style and click OK, "Book" style is applied!? Same goes for "Condensed Bold Obliqe" - "Bold Oblique" is applied, for DejaVu Serif "Condensed" I get "Book"... ---------------------------------------------------------------------- Rails · 2014-04-07 09:42 Debian Unstable, Laz 1.2 (64 bit), GTK-2 here. I do not see that particular problem. Jessie is Debian testing at the moment. ---------------------------------------------------------------------- Blaazen · 2014-04-07 10:34 Where are the lists different ? I can see that Lazarus has two columns where the font subsets are separated. BTW, are you trying to use proportional font for Source Editor ? ---------------------------------------------------------------------- dogriz · 2014-04-07 11:03 Here is link that shows the problem: https://www.dropbox.com/s/pf3cmd943rqcvbh/DejaVuFontLazarus.avi ---------------------------------------------------------------------- dogriz · 2014-04-07 11:28 One more thing - I compiled this project on Windows for comparison. It works but with some glitches with "ExtraLight" style. But I noticed something else - check the FontName property on attached images (Label at the top) - it shows different strings on Windows and Linux for the same selected font. Can that be the problem with FontDialog on Linux? ---------------------------------------------------------------------- Blaazen · 2014-04-07 12:38 QuoteCan that be the problem with FontDialog on Linux?I don't think so. I cannot select DejaVu Condensed too although the dialog offers me it (Lazarus uses system dialogs). So I think problem is the way how Lazarus manages system fonts on Linux. It seems to a bug. ---------------------------------------------------------------------- dogriz · 2014-04-07 16:44 I managed to use font I want by typing its name manualy (not using FontDialog), but for DejaVu font - style classification is really bad. Examples: If I choose DejaVu Sans font with ExtraLight style, FontDialog gives me FontName "DejaVu Sans" (it should be "DejaVu Sans Light") DejaVu Sans Condensed FontDialog.FontName is "DejaVu Sans". (no Condensed string anywhere) DejaVu Sans Book => FontDialog.FontName = "DejaVu Sans" ... So: To get DejaVu Sans Condensed Oblique must hardcode like this: Memo1.FontName := "DejaVu Sans Condensed";  Memo1.FontStyle = [fsItalic]; ...