The font in QML is not smooth, in windows
I found font in QML is not smooth in windows, whatever font-type I chosen ,
but in linux/ubuntu, the font is good.
what is your Windows version? XP has troubles with QML and custom fonts
This may be because QML file is not UTF-8 formated.
You have to convert that file into UTF-8 format.
I found this bugreport while searching deep into the matter.
"Chinese font Bugreport":http://bugreports.qt.nokia.com/browse/QTCREATORBUG-2939
qtrahul, are you sure that smoothness of fonts can depend on encoding? As for me these two things re totally unrelated.
If it's not "smooth" it seems that there are problems with anti aliasing or something like that. Or there are not any "good" chinese fonts installed on the windows box.
If the encoding was wrong, there would be garbage on the screen.
Volker, yes. Maybe wrong graphicssystem is chosen?
winxp and win7 is the same question
font can display correctly in windows and ubuntu,
and the font look better in ubuntu than windows
you can see here
upper is in win7 ,and following is in ubuntu, at the same computer,
you can see carefully ,carefully
The bottom one looks smoother/nicer on my screen. That is Windows 7?
However, on closer inspection, the only issue with the top one appears to be JPEG artifacting.
I was confused , sorry. the upper is in win7 and the following is in ubuntu
Do you have Windows ClearType on?
Also, can you take your screenshots as PNG? There is crazy JPEG artifacting in the Windows image which makes it hard to compare.
I think it is all down to the operating systems rendering unfortunately. Qt doesn't mess with that.
I take shot from win7 and ubuntu at my laptop
import QtQuick 1.0
width: 800; height: 600
text: "As a boy, Chris Cooley watched his father dabble at the potter’s wheel; after his football career, he plans to keep pottery in his life.核心提示：由于上座率低，上海至北京的一趟动卧车将在2011年1月5日被全部改造成普通软卧。此前媒体曝光上海至成都的豪华动卧最贵票价达2330元，有舆论批评开出这种低上座率班次是浪费春运的运力，铁路方面则回应这是中国发展的需要。"
font.family: "simhei"; font.pointSize: 30
[EDIT: added @-tags for code formatting, Volker]
It seems you are right. I've just tested your example and it is not smooth in the QML but smooth in the MS Word. Maybe you should file bugreport?
It seems nothing to do with the Chinese characters either. The English ones in that screenshot have the same problem.
No one has enconter the problem in windows?
bellnas, maybe no one use such a big font in their projects. You've encountered the problem feel free to file a bug to trolls if you want this bug to be fixed.
I've created a "bugreport":http://bugreports.qt.nokia.com/browse/QTCOMPONENTS-319 . ;)
p.s. "The guys are quite fast":http://bugreports.qt.nokia.com/browse/QTCOMPONENTS (see the graph), but be patient because of the time now, I think we will soon have get some progress ;)
CreMindES, I think you chose wrong project :) Qt is more applicable for it.
It's a QML problem if I am right which is a part of the Qt Quick, but that will be our smallest problem I think...
CreMindES, yes, but Qt Quick != Qt Quick Components :) But i think trolls will handle it.
I think we misunderstand each other, or you wrote wrong, QML is part of Qt Quick...
But yes, trolls fix it, if it doesn't belong to that category, we will see ;)