[Interest] QmlText: fontSizeMode: Text.Fit with rich text.

Wehmer, Matthias Matthias.Wehmer at draeger.com
Wed Jul 15 17:55:12 CEST 2015


Hi André,

This seems like an idea. Thanks a lot.
Although I am still eager to know, what is going on when using RichText and what is the difference to StyledText when trying to scale it.

Greetings
Matthias

-----Original Message-----
From: André Somers [mailto:andre at familiesomers.nl] 
Sent: Wednesday, July 15, 2015 4:09 PM
To: Wehmer, Matthias
Cc: interest at qt-project.org
Subject: Re: [Interest] QmlText: fontSizeMode: Text.Fit with rich text.

Could you get away with using the Unicode symbols for the ^2 and the likes?

André

> Op 15 jul. 2015 om 09:47 heeft "Wehmer, Matthias" <Matthias.Wehmer at draeger.com> het volgende geschreven:
> 
> Hi everybody,
> 
> Currently we are working in the area of displaying texts and there formats.
> Here we encountered the following strange behavior:
> 
> - We have a text that we would like to auto scale via "fontSizeMode:
> Text.Fit"
> - Further this text shall be able to display rich texts, such as we 
> can have something like a^2. Thus we have set "textFormat: Text.RichText"
> - The latter one is necessary as "textFormat: Text.AutoText" does not 
> recognize "a<sub>2</sub>" as rich text.
> - Problem: When setting "textFormat: Text.RichText", the text is not 
> scaled automatically.
> - It recognizes "<u>foo</u>" with Text.AutoText and it then the text 
> fits correctly. When setting Text.RichText though, the scaling does 
> not work anymore. So this is probably due to <u></u>  being part of 
> the StyledText feature set. Unfortunately, super- and subscripts are not.
> 
> Have you observed similar behavior and have a hint, why "fontSizeMode:
> Text.Fit" does not work with "textFormat: Text.RichText"? Are there 
> additional steps to get it working?
> 
> Thanks a lot and greetings from Germany Matthias
> 
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5658 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150715/735c2fa3/attachment.bin>


More information about the Interest mailing list