特定gtk应用程序的字体设置 [英] Font setting for a specific gtk application

查看:226
本文介绍了特定gtk应用程序的字体设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想设置供特定 Gtk + 3应用程序使用的字体.怎么办?

我知道我可以在文件$XDG_CONFIG_HOME/gtk-3.0/settings.ini中设置供所有 Gtk + 3应用程序使用的字体,但是我不知道如何仅针对特定应用程序设置字体./p>

我不开发应用程序.我只想以不同于当前桌面字体集的字体大小来运行它.

解决方案

根据您对特定应用程序的要求(即字体,字体大小,主题等)修改文件~/.config/gtk-3.0/settings.ini.

将其保存在~/.config/somewhereelse/gtk-3.0下.

使用XDG_CONFIG_HOME=$HOME/.config/somewhereelse your-application

运行应用程序

I want to set the font to be used by a particular Gtk+ 3 application. How can it be done?

I know I can set the font to be used by all Gtk+ 3 applications in the file $XDG_CONFIG_HOME/gtk-3.0/settings.ini, but I do not know how the font can be set for only a specific application.

Edit: I am not developing the application. I just want to run it with a font size different from the current one set for the desktop.

解决方案

Modify the file ~/.config/gtk-3.0/settings.ini according to your wishes for your specific application (i.e. font, font-size, theme, etc.).

Save it under ~/.config/somewhereelse/gtk-3.0.

Run the application with XDG_CONFIG_HOME=$HOME/.config/somewhereelse your-application

这篇关于特定gtk应用程序的字体设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆