To solve this problem I access the pango layout directly and reduce the
font size until it fits perfectly given a width in pixels before
rendering text. The problem with this solution is you can end up with a
font size that might be illegible since it is to small. As you have
mentioned, it depends on the use-case and what is acceptable or not
given the application.
Danick
Jason Tackaberry wrote:
On Wed, 2009-01-21 at 08:52 +0000, Emmanuele Bassi wrote:
ugh. I'd argue on the usability of that...
Sure, arguments could be made either way, but depending on the use-case.
Of course what I propose would be horrible in some situations.
The primary use-case for text fading to transparent in lieu of the
ellipsis (for us) is an EPG (Electronic Program Guide). In this case,
when the goal is to present as much usable information as possible in a
given screen, and when program titles regularly exceed the grid cell
size available, being able to make out the last 3 letters of the title
(even if they are being faded to transparent) as opposed to having those
last letters replaced with an ellipsis is sometimes the difference
between recognizing the program title and not.
Cheers,
Jason.
--
To unsubscribe send a mail to [email protected]