PDA

View Full Version : QWebview doesn't show phonetic symbols



herend
2nd November 2011, 23:28
Hi,

i wonder why QWebview does not show phonetic symbols. (Only black squares are instead of symbols.)

For example this page is OK in ff, ie, chrome:
http://tlt.its.psu.edu/suggestions/international/bylanguage/ipachart.html

But not in QWebview control (Qt/demos/browser application or in my simple test)

Symbols are unicode characters, and page is in utf8.
Any suggestion?
Thanks,
Steve

herend
23rd November 2011, 21:41
i've found a workaround (html code):

<html><head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
does not work in Qt (only in ff, ie, chrome): &#x251;
<br/>
workaround for Qt: <span style="font-family:Lucida Sans Unicode">&#x251;</span>
</body></html>


i don't know why, but it seems that every unicode characters work in Qt except IPA (http://en.wikipedia.org/wiki/International_Phonetic_Alphabet)

IPA Extensions (unicode range: 0250–02AF)

Is it a feature or bug?
If it is a feature how can i switch it off? If it's a bug, please confirm.

Thanks,
Steve

Lykurg
23rd November 2011, 21:51
It is neither a bug nor a feature. It has only to do which main font you set. The default font on your system might not support this characters.

herend
24th November 2011, 11:34
:) Thanks for reply.

But the other browsers (ff, ie, chrome) can show it well, on the same computer.
That's why i think Qt browser does something else, not the system and default font settings...