Qt4 (Ubuntu 12.04) no space between chars
-
wrote on 1 Apr 2013, 21:51 last edited by
!http://s017.radikal.ru/i432/1304/cc/99e9ef541695.png(Sample)!
I could not find any solution of this problem in Google.
In Ubuntu 11.10 Qt4 looks perfect, like Qt3 on the attached picture.
That problem for any font in Qt4.
How to fix Qt4 rendering of a fonts?Thanks.
-
wrote on 2 Apr 2013, 09:59 last edited by
Hi Abbat81,
I couldn't see any problems on this image.
Do you have an image which shows you mentioned problem?I haven't encountered any problems with ubuntu12.04 and Qt4.x
-
wrote on 2 Apr 2013, 10:29 last edited by
Try with a Qt version from the download page here. Does it happen with that version, too?
If that works, you will need to file a bug with ubuntu.
-
wrote on 2 Apr 2013, 10:40 last edited by
You most likely did not have the correct dependencies when compiling Qt. Make sure configure doesn't report anything missing related to fonts, x11 or graphics. For ubuntu I would suggest simply installing libgtk2.0-dev packages in order to get the build dependencies needed for gtk style and other things.
-
wrote on 2 Apr 2013, 15:08 last edited by
[quote author="Juergen_M" date="1364896789"]Hi Abbat81,
I couldn't see any problems on this image.
[/quote]
Is it normal if there is no space between letters?
Maybe you should open image in a new tab to see a problem. -
wrote on 2 Apr 2013, 15:10 last edited by
[quote author="Jens" date="1364899227"]You most likely did not have the correct dependencies when compiling Qt. Make sure configure doesn't report anything missing related to fonts, x11 or graphics. For ubuntu I would suggest simply installing libgtk2.0-dev packages in order to get the build dependencies needed for gtk style and other things.[/quote]
Thanks for reply.
How can I fix it?
How can I reinstall qt4? -
wrote on 2 Apr 2013, 18:36 last edited by
Ok I have tested your test.
I used LUbuntu12.10 and Qt.4.8.4Nop. Every font is shown correctly.
The only difference in my test is that I have build Qt4.8.4 by myself.
So the problem can be in the Ubuntu build version as Tobias mentioned -
wrote on 3 Apr 2013, 17:51 last edited by
[quote author="Juergen_M" date="1364927766"]Ok I have tested your test.
I used LUbuntu12.10 and Qt.4.8.4Nop. Every font is shown correctly.
The only difference in my test is that I have build Qt4.8.4 by myself.
So the problem can be in the Ubuntu build version as Tobias mentioned[/quote]I get that bug in Lubuntu 12.04.
It's realy problem of Qt4 build in Ubuntu.
I had used QT4 in Lubuntu 11.10 and it's perfect.Is it possible to get tutorial to make own Qt4 build?
Thanks. -
wrote on 3 Apr 2013, 18:56 last edited by
Very simple. Download the qt source from here:
http://releases.qt-project.org/qt4/source/qt-everywhere-opensource-src-4.8.4.tar.gzI usually extract it in /usr/local
tar xvfz qt-everywhere-opensource-src-4.8.4.tar.gz -C /usr/local
cd /usr/local/qt-everywhere-opensource-src-4.8.4
./configure -qt-xcb -qt-png
The following the instruction show in the terminal
Thats it.
You need to install some tools before with apt-get install, like autotools, bison, yacc, bison etc -
wrote on 14 Apr 2013, 00:27 last edited by
Finally I got solution.
Yes!Only one thing was needed - to kill "file:///etc/fonts/conf.d/10-hinting-slight.conf"
The reason:
The bad font:
!http://s019.radikal.ru/i616/1304/a4/276c2ce39d6f.png(Bad Font)!
The good font:
!http://s004.radikal.ru/i208/1304/53/da48e9a8ffc9.png(Good Font)!Large buttons:
!http://s42.radikal.ru/i098/1304/59/e3ff5a9a7ad2.png(large buttons)!