[Interest] Issue with Qt fonts

Volker Hilsheimer volker.hilsheimer at qt.io
Thu Sep 23 14:53:47 CEST 2021


> On 23 Sep 2021, at 14:43, praveen illa <praveenilla.edu at gmail.com> wrote:
> 
> After switching to other language
> 
> On Thu, 23 Sep, 2021, 6:10 PM Crocker, William, <William.Crocker at analog.com> wrote:
> Is the include picture before, after or both.
> 
>  
> 
> From: Interest <interest-bounces at qt-project.org> On Behalf Of praveen illa
> Sent: Thursday, September 23, 2021 8:20 AM
> To: interest at qt-project.org
> Subject: [Interest] Issue with Qt fonts
> 
>  
> 
> [External]
> 
>  
> 
> Hi Team, 
> 
>  
> 
> I am facing an issue with fonts when switching between english and other language. 
> 
> The Qt fonts displaying are not smooth on the target. 
> 
>  
> 
> Can anyone help me on this issue?
> 
>  
> 
> Below are the font libraries am using
> libharfbuzz.so.0.20301.0
> libharfbuzz-subset.so.0.20301.0
> libfontconfig.so.1.10.1
> libfreetype.so.6.16.1
> 
> Thank you
> 
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest


Does your default font provides those glyphs? if not, then Qt will try to find a font that can and matches the original font in certain attributes (for instance, proportional font, or serifed font). The quality of the glyphs in the font Qt choses for you might then not be what you expect.

It’s best to explicitly select the fonts you want for the different languages. That’s why there’s QFont::setFamilies which takes a list:

https://doc.qt.io/qt-6/qfont.html#setFamilies


Cheers,
Volker



More information about the Interest mailing list