Re: [GSoC] Text Background Color in Draw - Report 24/05/2013

2014-05-26 Thread Noel Grandin

On 2014-05-25 18:05, Matteo Campanelli wrote:

during last week I studied how to make arbitrary portions of text  have a 
(possibly transparent) background color.
So far I have been able  to render a monochromatic non-transparent background 
behind text (see attachment).


Hi

Nice work!

I'm not sure how LO's current glyph bitmap caching works, but you might run 
into some visual artifacts with anti-aliasing.

Some programs cache the rendering of glyphs, especially when doing anti-aliasing, because it is quite expensive to do 
the computation.


However, this can lead to some odd pixel effects when you change the background color, because doing anti-aliasing 
properly is dependent on both the color of the glyph and the color of the background.


Hopefully LO doesn't have this problem, but just in case, I thought you should 
know.

Regards, Noel Grandin

Disclaimer: http://www.peralex.com/disclaimer.html


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [GSoC] Text Background Color in Draw - Report 24/05/2013

2014-05-27 Thread Thorsten Behrens
Noel Grandin wrote:
> [background color & anti-aliasing]
>
> Hopefully LO doesn't have this problem, but just in case, I thought
> you should know.
> 
Don't think so. Glyphs are cached with alpha info in all font
subsystems that I know of.

Cheers,

-- Thorsten


signature.asc
Description: Digital signature
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice