You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Pierre-Yves Landuré <py...@dorigo.fr> on 2006/01/18 14:19:53 UTC

RGB colors : can you reproduce my problem ?

Hi,

i've just stopped on a strange problem with rgb colors in FOP 0.20.5.

I'm using for example a fo file containing this string :

<fo:block font-family="Garamond" color="rgb(11, 12, 13)" 
text-align="center" text-align-last="center" text-transform="none" 
text-decoration="none" font-weight="normal" font-style="normal" 
font-size="18pt">Some text</fo:block>

PDF is generated OK, but when check for colors (using screen capture and 
/ or a little javacode i've done), i've found that the resulting color is :

RGB(0, 0, 13)

!!!! I've done some check.. and it looks like each rgb value <= 12 is 
set to 0.

Can one of you reproduce this ?

Thanx for your help,

Pierre-Yves Landuré

Re: RGB colors : can you reproduce my problem ?

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
It seems you're right.

FOP 0.20.5: 0 0 0.05098  rg 
FOP 0.91beta: 0.043137 0.047059 0.05098 rg

It seems this is a problem in the PDFRenderer because the PSRenderer
generates the correct color value. I'd say you have two options:
- Upgrade to 0.91beta.
- Debug the PDFRenderer and fix the bug yourself.

On 18.01.2006 14:19:53 Pierre-Yves Landuré wrote:
> Hi,
> 
> i've just stopped on a strange problem with rgb colors in FOP 0.20.5.
> 
> I'm using for example a fo file containing this string :
> 
> <fo:block font-family="Garamond" color="rgb(11, 12, 13)" 
> text-align="center" text-align-last="center" text-transform="none" 
> text-decoration="none" font-weight="normal" font-style="normal" 
> font-size="18pt">Some text</fo:block>
> 
> PDF is generated OK, but when check for colors (using screen capture and 
> / or a little javacode i've done), i've found that the resulting color is :
> 
> RGB(0, 0, 13)
> 
> !!!! I've done some check.. and it looks like each rgb value <= 12 is 
> set to 0.
> 
> Can one of you reproduce this ?
> 
> Thanx for your help,
> 
> Pierre-Yves Landuré



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org