[Qt-interest] Using font embedded as resource
Yves Bailly
yves.bailly at sescoi.fr
Fri Jan 23 08:54:38 CET 2009
Simon Hausmann wrote:
> On Wednesday 21 January 2009 13:18:40 ext Yves Bailly wrote:
>> Hello all,
>>
>> For some reason, I have to embed a font file (TrueType) as a resource
>> in my executable, using a line like this one in the resource file:
>> [...]
>> When compiled and run on a (Linux) system where the font is
>> installed sytem-wide, everything works fine. When compiled and run
>> on a (Windows) system where the font is not installed at all, I
>> notice some rendering errors, for example the character U+0x2699 is
>> not rendered correctly.
>> Using Qt 4.4.3 on both system.
>
> There was a bug in Qt < 4.5 that would result in problems similar to what you
> were seeing, related to the incorrect detection of writing systems for fonts
> on Windows that are added via the resource system. Can you try today's Qt 4.5
> snapshot and see if that fixes the problem for you?
Tried it... and unfortunately, I get the same result. Even stranger, I get the
same render errors on some characters even when the font is installed system-
wide, in C:\Windows\Fonts.
In case you want to explore this issue more deeply and want me to try things,
maybe contact me directly to avoid to pollute the list.
Regards,
--
/- Yves Bailly - Software developper -\
\- Sescoi France http://www.sescoi.fr -/
"The possible is done. The impossible is being done. For miracles,
thanks to allow a little delay."
More information about the Qt-interest-old
mailing list