Tkinter 8.6中的Antialias字体

时间:2019-07-14 01:18:15

标签: python tkinter fonts tk motif

我正在尝试获取与Tkinter中的UI相同的字体。

我将FreeBSD 12和Common Desktop Environment(MOTIF)一起使用。 据我了解,该界面使用的字体是:

Using version ^0.4.4 for google/cloud-text-to-speech
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for google/cloud-text-to-speech ^0.4.4 -> satisfiable by google/cloud-text-to-speech[v0.4.4].
    - Conclusion: don't install google/gax 0.37.0
    - google/cloud-text-to-speech v0.4.4 requires google/gax ^1.0 -> satisfiable by google/gax[1.0.0, 1.0.1, 1.0.2, 1.0.3].
    - Can only install one of: google/gax[1.0.0, 0.37.0].
    - Can only install one of: google/gax[1.0.1, 0.37.0].
    - Can only install one of: google/gax[1.0.2, 0.37.0].
    - Can only install one of: google/gax[1.0.3, 0.37.0].
    - Installation request for google/gax (locked at 0.37.0) -> satisfiable by google/gax[0.37.0].


Installation failed, reverting ./composer.json to its original content.

我配置了菜单小部件中要使用的相同字体。在程序中使用以下命令对此进行检查:

-dt-interface user-medium-r-normal-s sans-12-120-72-72-m-70-iso8859-1

我观察到的是,似乎Tkinter中的字体与其余X11 / Motif应用程序中的字体并不完全相同。

Tkinter是否正在使用某种抗锯齿功能?可以禁用吗?

我正在使用Tkinter 8.6。在图像中可以看到print(mymenu.cget('font')) 和Motif窗口如何具有相同的字体。但是Tkinter应用程序(位于图像右下角的应用程序)似乎以不同的方式绘制字体-显然使用了某种抗锯齿-。

是这种情况吗?如果是这样,可以禁用它吗?

enter image description here

0 个答案:

没有答案