Linux is installed on my computer. I am engaged in programming on Python in this operating system. Naturally, you have to test written applications in the Windows environment. It was decided to install Wine and Python for Windows. So, actually, the problem is: when using the gtk library (Wine / Python), you get these warnings ... The font itself in the windows of the interface is in squares, be it Cyrillic or Latin.

Warning (from warnings module): File "Z:\home\zavulon\Programming\Opt\Package_for_Windows\gtkPopupNotify-master\gtkPopupNotify.py", line 248 self.show_all() PangoWarning: couldn't load font "Sans Bold Not-Rotated 14", falling back to "Sans Bold Not-Rotated 14", expect ugly output. Warning (from warnings module): File "Z:\home\zavulon\Programming\Opt\Package_for_Windows\gtkPopupNotify-master\gtkPopupNotify.py", line 248 self.show_all() PangoWarning: All font fallbacks failed!!!! Warning (from warnings module): File "Z:\home\zavulon\Programming\Opt\Package_for_Windows\gtkPopupNotify-master\gtkPopupNotify.py", line 248 self.show_all() PangoWarning: failed to choose a font, expect ugly output. engine-type='PangoRenderWin32', script='latin' Warning (from warnings module): File "Z:\home\zavulon\Programming\Opt\Package_for_Windows\gtkPopupNotify-master\gtkPopupNotify.py", line 248 self.show_all() PangoWarning: couldn't load font "Sans Not-Rotated 12", falling back to "Sans Not-Rotated 12", expect ugly output. Warning (from warnings module): File "Z:\home\zavulon\Programming\Opt\Package_for_Windows\gtkPopupNotify-master\gtkPopupNotify.py", line 373 gtk.main() PangoWarning: couldn't load font "Sans Bold Not-Rotated 10", falling back to "Sans Bold Not-Rotated 10", expect ugly output. Warning (from warnings module): File "Z:\home\zavulon\Programming\Opt\Package_for_Windows\gtkPopupNotify-master\gtkPopupNotify.py", line 373 gtk.main() PangoWarning: All font fallbacks failed!!!! Warning (from warnings module): File "Z:\home\zavulon\Programming\Opt\Package_for_Windows\gtkPopupNotify-master\gtkPopupNotify.py", line 373 gtk.main() PangoWarning: failed to choose a font, expect ugly output. engine-type='PangoRenderWin32', script='common' 
  • Could you put at least part of your code here, or rather the one that leads to the message output: PangoWarning: couldn't load font "Sans Bold Not-Rotated 10", falling back to "Sans Bold Not-Rotated 10", expect ugly output - abalckin
  • Yes, the usual Hello World :) - Xyanight

2 answers 2

So you do not have the same fonts, that the gtk theme for Windows is written. Put them in the wine you need.

  • Yes, I realized that you need to put, opened winetricks, there are these fonts with giktar, which ones I need, I do not know. - Xyanight

Your program does not find the specified fonts, perhaps they are simply not in your wine configuration. Why reinvent the wheel, test on a virtual machine with windows, and not on wine.

  • That is, and even better to just take a car with a windowz. - abalckin
  • I'm allergic to windows :) Therefore, I use wune. In addition, I have a weak car to pull the virtual. - Xyanight