sivarajankumar / alivepdf

Automatically exported from code.google.com/p/alivepdf
0 stars 0 forks source link

Rounding Error #90

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
v0.1.4.6
Flex 3.2 (nightly build)
Flash 10 SDK

I'm getting a rounding error in the positioning of text using POINT.
checking the code reveals k = 1 for point. The font sizes are correct.

When I use my own rendering engine to render it in flex (basically just
gives me better control over text spacing) and when I save it to a PDF some
lines have a different relative distance to each other between the two
samples. In flex a particular capital E is a good 2-3 pixels away from the
lower case g above it. In the generated PDF the top left of the E is
touching the bottom right of the g. The x and y locations used in both
cases are whole numbers. Since there’s no division or multiplication by a
decimal which would create a floating point error I have no idea why this
is happening.

Unknown if this is something to do with PDF or AlivePDF.

Original issue reported on code.google.com by nomercy2...@gmail.com on 23 Oct 2008 at 1:33