1 Attachment(s)
broken font in qt windows
Hi,
I am facing a strange problem of font display in Qt application windows.
I have installed Qt 4.8.0 in Ubuntu 11.10. when the run the examples given the font of windows is not clear and it is kind of broken.
please see the attached image.
please let me know how to solve the problem.
thanks.
Re: broken font in qt windows
The example you have does not specify particular font: it just uses the default for the style/platform. Your system is providing a poor substitute for the font requested. This should more-or-less affect all the Qt examples. Install the font being used, probably a basic Truetype sans serif font, or substitute a font with Unicode support.
Re: broken font in qt windows
I have executed other examples also, in all the cases the font is not clear, even the application created by me also does not display proper font.
How can i make Qt takes other fonts?
and if system does not have all fonts or need to change the default font for Qt how to do install it?
i have tried installing below
sudo apt-get install msttcorefonts
gnome-panel and gnome-tweak-tool
but did not help.
Re: broken font in qt windows
The default font used by Qt on Linux appears to be whatever fontconfig matches for "sans serif".
What does:
Code:
$ fc-match 'sans serif'
list on your machine? It's a "DejaVu Sans" on my machine but might be different in your case.
You can see the the default font setting in:
however your mileage may vary if your change the font. Some styles do not seem to take note of the setting.
Re: broken font in qt windows
It list the same as yours "DejaVu Sans" for me.
I have tried to modify using qtconfig, but did not help , the effect is same.
I have gone through below links actually
https://bbs.archlinux.org/viewtopic.php?id=166034
https://bbs.archlinux.org/viewtopic.php?id=69336
https://bbs.archlinux.org/viewtopic.php?id=67031
they are saying it has something to do with sub-pixel rendering , but they dint mention where to make changes and how.
do you have any idea?
Re: broken font in qt windows
I am facing the same issue.
I am using Qt 4.8.7 in Ubuntu 14.04. I have tried gnome-tweak-tool but nothing seems to be reflected in qt application. Fonts are still broken.