TFontDialog most options do not work lazarus / 31-LCL ---------------------------------------------------------------------- fedkad · 2018-12-08 14:06 I am on the latest trunk of Lazarus Linux version. I am trying to use TFontDialog. The dialog has some missing elements compared to the Windows version: Effects, Color and Script are not displayed in the Linux version, whereas the Windows version is OK. Most of the TFontDialog.Options are ignored in Linux: Selecting or deselecting fdEffects, fdLimitSize, fdNoSizeSel, fdNoStyleSel, fsShowHelp, etc., seems to have no effect. ---------------------------------------------------------------------- jamie · 2018-12-08 16:05 You need to confirm if older Laz worked before, if so then report it to the bug page. I don't use Linux yet but its looking attractive, there maybe an issue with the Widget you are using. ---------------------------------------------------------------------- zeljko · 2018-12-08 16:11 Quote from: fedkad on December 08, 2018, 03:06:17 pmI am on the latest trunk of Lazarus Linux version. I am trying to use TFontDialog. The dialog has some missing elements compared to the Windows version: Effects, Color and Script are not displayed in the Linux version, whereas the Windows version is OK. Most of the TFontDialog.Options are ignored in Linux: Selecting or deselecting fdEffects, fdLimitSize, fdNoSizeSel, fdNoStyleSel, fsShowHelp, etc., seems to have no effect. Maybe platform diff. In any case such non useable options must be documented as issue against widgetset (eg gtk2 or qt under linux). ---------------------------------------------------------------------- fedkad · 2018-12-09 08:33 It is x86_64-linux-gtk2 ---------------------------------------------------------------------- zeljko · 2018-12-09 12:08 That's exactly what I'm talking about, each widgetset implements it's own font dialog ,so that's why they differ. ---------------------------------------------------------------------- sash · 2018-12-09 12:16 Quote from: fedkad on December 08, 2018, 03:06:17 pmMost of the TFontDialog.Options are ignored in Linux: Selecting or deselecting fdEffects, fdLimitSize, fdNoSizeSel, fdNoStyleSel, fsShowHelp, etc., seems to have no effect. Of course. Because mentioned options (controls) don't exist in target platform widgetset's dialog. https://developer.gnome.org/gtk2/stable/GtkFontSelectionDialog.html Like any TCommonDialog, it is implemented outside of LCL. p.s. Comapre to QT's font dialog: http://doc.qt.io/archives/qt-4.8/images/plastique-fontdialog.png ---------------------------------------------------------------------- fedkad · 2018-12-10 12:46 I am relatively new in Linux platform. Can you explain if it is possible to switch from GTK to QT? I am currently running Ubuntu 18.10. ---------------------------------------------------------------------- sash · 2018-12-10 13:37 QuoteCan you explain if it is possible to switch from GTK to QT? Probably not very hard, http://wiki.freepascal.org/Qt_Interface, however I tried, but gave up (because of laziness  ) In your place, I'd simply implement your own dialog form. It is not that very complex. ---------------------------------------------------------------------- zeljko · 2018-12-10 13:42 Quote from: fedkad on December 10, 2018, 01:46:49 pmI am relatively new in Linux platform. Can you explain if it is possible to switch from GTK to QT? I am currently running Ubuntu 18.10. No it's not, just install libqt4pas and libqt4pas-dev packages, and rebuild your project against qt widgetset. If your project is builded ok and it works, then you can rebuild lazarus ide against qt widgetset too. ---------------------------------------------------------------------- lucamar · 2018-12-10 14:47 Quote from: zeljko on December 10, 2018, 02:42:18 pmNo it's not, just install libqt4pas and libqt4pas-dev packages, and rebuild your project against qt widgetset [...] You'll also need to install the Qt libraries, if they are not already installed, rebuild the LCL for Qt, etc. for this to work. It's not difficult but can be a little time-consuming until you have it all ready. Best (if you want to do much Qt development) is to use a KDE-based distro, like p.e. Kubuntu.