www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dwt - GtkD global font size

reply Sai <sai sai.com> writes:
I am writing a small GUI application using GtkD3 Builder and 
Glade. On a HD monitor the default font size is too small. The 
adwaita theme is not great but I can live with it.

Is there any way to globally increase the font size in the GtkD?

I tried the settings.ini file, but that did not help with my 
GtkD3 app. On the other hand, it did increase the global font 
size of the Glade tool, just not my application. Is some how GtkD 
different from pure Gtk application?

Thanks in advance.
-Sai
Jan 14
next sibling parent reply Jacob Carlborg <doob me.com> writes:
On 2018-01-15 00:55, Sai wrote:
 I am writing a small GUI application using GtkD3 Builder and Glade. On a 
 HD monitor the default font size is too small. The adwaita theme is not 
 great but I can live with it.
 
 Is there any way to globally increase the font size in the GtkD?
 
 I tried the settings.ini file, but that did not help with my GtkD3 app. 
 On the other hand, it did increase the global font size of the Glade 
 tool, just not my application. Is some how GtkD different from pure Gtk 
 application?
This is the forum for the DWT library. I suggest you try the "learn" forum instead. -- /Jacob Carlborg
Jan 15
parent reply Mike James <foo bar.com> writes:
On Monday, 15 January 2018 at 08:21:16 UTC, Jacob Carlborg wrote:
 On 2018-01-15 00:55, Sai wrote:
 I am writing a small GUI application using GtkD3 Builder and 
 Glade. On a HD monitor the default font size is too small. The 
 adwaita theme is not great but I can live with it.
 
 Is there any way to globally increase the font size in the 
 GtkD?
 
 I tried the settings.ini file, but that did not help with my 
 GtkD3 app. On the other hand, it did increase the global font 
 size of the Glade tool, just not my application. Is some how 
 GtkD different from pure Gtk application?
This is the forum for the DWT library. I suggest you try the "learn" forum instead.
Considering the amount of traffic in this forum wouldn't it be better to relabel it as a GUI Forum? Regards, -=mike=-
Jan 15
parent reply Sai <sai sai.com> writes:
On Monday, 15 January 2018 at 08:36:38 UTC, Mike James wrote:
 On Monday, 15 January 2018 at 08:21:16 UTC, Jacob Carlborg 
 wrote:
 On 2018-01-15 00:55, Sai wrote:
 I am writing a small GUI application using GtkD3 Builder and 
 Glade. On a HD monitor the default font size is too small. 
 The adwaita theme is not great but I can live with it.
 
 Is there any way to globally increase the font size in the 
 GtkD?
 
 I tried the settings.ini file, but that did not help with my 
 GtkD3 app. On the other hand, it did increase the global font 
 size of the Glade tool, just not my application. Is some how 
 GtkD different from pure Gtk application?
This is the forum for the DWT library. I suggest you try the "learn" forum instead.
Considering the amount of traffic in this forum wouldn't it be better to relabel it as a GUI Forum? Regards, -=mike=-
Yup, that's what I thought, that this forum is not exclusive for DWT anymore, but is available for all Gui libs. Anyway I did repost my question in GtkD GH issues.
Jan 15
next sibling parent Jacob Carlborg <doob me.com> writes:
On 2018-01-15 13:18, Sai wrote:

 Yup, that's what I thought, that this forum is not exclusive for DWT 
 anymore, but is available for all Gui libs.
 
 Anyway I did repost my question in GtkD GH issues.
For most exposure I recommend the learn forum or, as you did, post to GitHub. -- /Jacob Carlborg
Jan 15
prev sibling parent John Gabriele <jgabriele fastmail.fm> writes:
On Monday, 15 January 2018 at 12:18:02 UTC, Sai wrote:
 Anyway I did repost my question in GtkD GH issues.
Note also, the GtkD project has its own forum: <https://forum.gtkd.org/>.
Jan 16
prev sibling parent reply Binghoo Dang <dangbinghoo gmail.com> writes:
On Sunday, 14 January 2018 at 23:55:03 UTC, Sai wrote:
 I am writing a small GUI application using GtkD3 Builder and 
 Glade. On a HD monitor the default font size is too small. The 
 adwaita theme is not great but I can live with it.

 Is there any way to globally increase the font size in the GtkD?

 I tried the settings.ini file, but that did not help with my 
 GtkD3 app. On the other hand, it did increase the global font 
 size of the Glade tool, just not my application. Is some how 
 GtkD different from pure Gtk application?

 Thanks in advance.
 -Sai
Do you running your GtkD app on Windows or Linux? On Linux, font size may be controlled by gtk3 settings in /etc or by system fontconfig. On windows, you may just focus on settings.ini. I just developed a GUI app using GTKD very recently, and it works greate, fontsize is also working great in the Chinese language.
Jan 16
parent user <user tmp.com> writes:
On Tuesday, 16 January 2018 at 08:53:20 UTC, Binghoo Dang wrote:
 On Sunday, 14 January 2018 at 23:55:03 UTC, Sai wrote:
 I am writing a small GUI application using GtkD3 Builder and 
 Glade. On a HD monitor the default font size is too small. The 
 adwaita theme is not great but I can live with it.

 Is there any way to globally increase the font size in the 
 GtkD?

 I tried the settings.ini file, but that did not help with my 
 GtkD3 app. On the other hand, it did increase the global font 
 size of the Glade tool, just not my application. Is some how 
 GtkD different from pure Gtk application?

 Thanks in advance.
 -Sai
Do you running your GtkD app on Windows or Linux? On Linux, font size may be controlled by gtk3 settings in /etc or by system fontconfig. On windows, you may just focus on settings.ini. I just developed a GUI app using GTKD very recently, and it works greate, fontsize is also working great in the Chinese language.
I am using windows. I added a lot more info here including screenshots showing the issue, and code to reproduce the issue. https://github.com/gtkd-developers/GtkD/issues/226
Jan 16