[Qt-interest] Font Selection Issue
Constantin Makshin
cmakshin at gmail.com
Fri Oct 8 08:53:29 CEST 2010
Check your fontconfig and Qt configurations for font substitutions.
On Thursday 07 October 2010 17:58:40 Jake Colman wrote:
>
> Using Qt4 on Solaris 10 I'm having trouble selecting the correct font
> when using Qt built with support for fontconfig.
>
> In order to ensure that I am being very specific in my request (for the
> purpose of this test), I created a font and then used QFontInfo to see
> what I got.
>
> The font is created as follows:
>
> QFont Font;
> Font.setRawName("-adobe-helvetica-medium-r-normal--12-120-75-75-p-67-iso8859-1");
>
> When built without fontconfig support, QFontInfo gives me the following (which is what I'd expect):
>
> Font Info:
> Family: Helvetica [Adobe]
> Point Size: 9
> Pixel Size: 12
> Exact Match: 1
>
> When built with fontconfig, however, I am getting the following:
>
> Font Info:
> Family: Bitstream Vera Sans
> Point Size: 9
> Pixel Size: 12
> Exact Match: 0
>
> Why is Qt with fontconfig not giving me the correct font?
>
> ...Jake
More information about the Qt-interest-old
mailing list