Home pageFind It!Contact PJAPJA documentation

PJA

 PJA Toolkit forum

This forum is dedicated to PJA Toolkit.
You may read freely the messages it contents. If you want to write a message or answer to a subject, subscribe to it first.

Subjects Recent messages Login Subscribe

Messages of subject Different Font-Rendering: Win vs. Solaris

joern

Location : Stuttgart/Germany
Member since : Sep 18, 2004
Messages : 1
 Sep 19, 2004 at 4:30 PM
Hi everybody,

I'm doing pixel-calculations on the serverside. I write a text with Arial, BOLD, 12pt and then measure the pixel width.

The problem: I get different pixel-widths on Windows and Solaris because the font-rendering differs. The spaces between the individual text-glyphs are smaller on Windows than on Solaris.

I have Arial installed in Windows and Solaris 2.6. In Solaris, I copied the Arial-TTF-files into jre/lib/fonts and edited jre/lib/fonts/fonts.dir to include:
arial.ttf -monotype-arial-regular-r-normal--0-0-0-0-p-0-iso8859-1
arialbd.ttf -monotype-arial-bold-r-normal--0-0-0-0-p-0-iso8859-1
arialbi.ttf -monotype-arial-bold-i-normal--0-0-0-0-p-0-iso8859-1
ariali.ttf -monotype-arial-regular-i-normal--0-0-0-0-p-0-iso8859-1

Please, can you help me? I need to calculate identical pixel-sizes on Win and Solaris.

Regards,

Jörn.

jflefebvre

Location : France
Member since : Sep 20, 2004
Messages : 1
 Sep 20, 2004 at 7:40 PM
Hi joern,

I got the same problem and i can't solve it. Do you find a solution ?

Regards,

Jeff


Home pageFind It!ContactTop

© Copyrights 1997-2023 eTeks - All rights reserved

PJAPJA documentation