You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by lp...@pg.ebx.com on 2001/11/21 08:57:26 UTC

convert line height value from pixel to pt

hello,

Anyone know how to convert line height value, I need to convert the value
from pixel to pt.

I try to convert the value from pixel by multiple 0.75 (value * 0.75) ,

When I run FOP 0.20.0,  I found the line height is wrong.

So, I not sure how to convert the value from pixel to pt, anyone know how
to calculate?


Thank you.

lpkhoo.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: convert line height value from pixel to pt

Posted by "Peter B. West" <pb...@powerup.com.au>.
lpkhoo,

Just on the point of pixel conversion - there is no rigorously defined 
value for pixel.  The FOP code assumes 1 point per pixel, but the actual 
size is up to the implementation and the medium, and may vary in the 
vertical and horizontal directions.  Users are warned in the spec 
against relying on pixels, which may be a minimum of 1 device unit 
(which will vary from output device to device), 1/72" (i.e. a point), 
1/90" or 1/92".  Don't use them.

Peter


Keiron Liddle wrote:

> 
> The line height is converted into points the same way that all other 
> units are converted.
> The problem is that the actual line height in the output is incorrect. 
> It sets the line height to the lineheight - half leading (depends on the 
> font) which is wrong. The line stacking is not done correctly anyway so 
> it is not simple to fix it properly.
> 
> 
> On 2001.11.21 08:57 lpkhoo@pg.ebx.com wrote:
> 
>>
>> hello,
>>
>> Anyone know how to convert line height value, I need to convert the value
>> from pixel to pt.
>>
>> I try to convert the value from pixel by multiple 0.75 (value * 0.75) ,
>>
>> When I run FOP 0.20.0,  I found the line height is wrong.
>>
>> So, I not sure how to convert the value from pixel to pt, anyone know how
>> to calculate?
>>
>>
>> Thank you.
>>
>> lpkhoo.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
> 


-- 
Peter B. West  pbwest@powerup.com.au  http://powerup.com.au/~pbwest
"Lord, to whom shall we go?"


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: convert line height value from pixel to pt

Posted by Keiron Liddle <ke...@aftexsw.com>.
The line height is converted into points the same way that all other units 
are converted.
The problem is that the actual line height in the output is incorrect. It 
sets the line height to the lineheight - half leading (depends on the 
font) which is wrong. The line stacking is not done correctly anyway so it 
is not simple to fix it properly.


On 2001.11.21 08:57 lpkhoo@pg.ebx.com wrote:
> 
> hello,
> 
> Anyone know how to convert line height value, I need to convert the value
> from pixel to pt.
> 
> I try to convert the value from pixel by multiple 0.75 (value * 0.75) ,
> 
> When I run FOP 0.20.0,  I found the line height is wrong.
> 
> So, I not sure how to convert the value from pixel to pt, anyone know how
> to calculate?
> 
> 
> Thank you.
> 
> lpkhoo.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org