Re: FOP font width for custom font (Arial)

2005-11-19 Thread Mike Trotman
There is one other thing to check for - that your printed PDF is not 
being 'scaled to fit', use draft quality etc.

- because I forgot once and wasted a lot of time.

Mike

The Web Maestro wrote:


On Nov 17, 2005, at 5:22 PM, Manuel Mall wrote


I just did my own test and the results are intriguing (using the latest
version of FOP). There is certainly a big difference between Word and
FOP.

It appears that FOP ignores the font-weight=bold. That is the text is
rendered identically for font-weight=bold and font-weight=normal.



This may be due to a lack of a font-triplet for BOLD, although you're 
using Arial (aren't you?) so IMO it should Just Work(tm)



Secondly it appears to be rendered in nearly the same size as Word
renders at font size 14.

This is when the font is embedded into the PDF.



This may be the problem. It may not be embedding the 'bold' version of 
the font for some reason.



Converting my FO example to HTML/CSS both IE and FireFox render it
identically and consistent with Word.

This seems to need some further investigation...



Regards,

Web Maestro Clay



--
Datalucid Limited


Message Scanned by ClamAV on datalucid.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FOP font width for custom font (Arial)

2005-11-19 Thread Manuel Mall
On Sat, 19 Nov 2005 08:28 pm, Mike Trotman wrote:
 There is one other thing to check for - that your printed PDF is not
 being 'scaled to fit', use draft quality etc.
  - because I forgot once and wasted a lot of time.

Mike, thank you!!!

That was exactly the problem why my PDFs printed in an apparent bigger 
font size than the Word sample.

As far as I can tell the print rendering of both Word and FOP trunk 
generated PDFs is identical when using the same font, font size, 
weight, no kerning, no justification, NO PRINT SCALING, etc

Manuel

 Mike

 The Web Maestro wrote:
  On Nov 17, 2005, at 5:22 PM, Manuel Mall wrote
 
  I just did my own test and the results are intriguing (using the
  latest version of FOP). There is certainly a big difference
  between Word and FOP.
 
  It appears that FOP ignores the font-weight=bold. That is the
  text is rendered identically for font-weight=bold and
  font-weight=normal.
 
  This may be due to a lack of a font-triplet for BOLD, although
  you're using Arial (aren't you?) so IMO it should Just Work(tm)
 
  Secondly it appears to be rendered in nearly the same size as Word
  renders at font size 14.
 
  This is when the font is embedded into the PDF.
 
  This may be the problem. It may not be embedding the 'bold' version
  of the font for some reason.
 
  Converting my FO example to HTML/CSS both IE and FireFox render it
  identically and consistent with Word.
 
  This seems to need some further investigation...
 
  Regards,
 
  Web Maestro Clay

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



FOP font width for custom font (Arial)

2005-11-17 Thread Prakash R
I'm using Arial font with FOP. I installed the fonts
by following the step to install custom fonts from TTF
on the FOP website using the TTFReader and adding
entries in userconfig.xml.

When I generate a PDF which uses the Arial font, the
width of characters are different for uppercase and
lowercase. The lowercase being lesser width. Is there
anyway I can set any property so that the lowercase
characters are also the same width as the uppercase
characters?

Thank you.
Prakash

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FOP font width for custom font (Arial)

2005-11-17 Thread Manuel Mall
On Fri, 18 Nov 2005 04:46 am, Prakash R wrote:
 I'm using Arial font with FOP. I installed the fonts
 by following the step to install custom fonts from TTF
 on the FOP website using the TTFReader and adding
 entries in userconfig.xml.

 When I generate a PDF which uses the Arial font, the
 width of characters are different for uppercase and
 lowercase. The lowercase being lesser width. Is there
 anyway I can set any property so that the lowercase
 characters are also the same width as the uppercase
 characters?

Arial is a so called proportional font. Not only have lowercase letters 
different widths to uppercase letters but even within the same case 
letters will have different widths, e.g. i will have a different width 
to m and W is different in width to J.

If a fixed character width is important to your layout you need to use a 
fixed width (= non proportional) font. For example Courier.

 Thank you.
 Prakash

Manuel

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FOP font width for custom font (Arial)

2005-11-17 Thread Prakash R
Thanks Manuel. I understand the difference now. Let me
rephrase my question.

I'm using Arial font in FOP and when I render it to
PDF with a specific font type and size (bold, size 12
pt) and I do the same with Microsoft word and print
both. It is exact same line and same font etc. The
Microsoft version of it is longer (when I overlay and
compare) than the FOP version even though both are
using the same fonts? Somehow the spacing of the
characters/words seems to be different in FOP than
with word. 

Is this a known issue? Can this be corrected? This is
causing some inconsistency between 2 formats namely
word and PDF. Please help.

Thank you.
Prakash

--- Manuel Mall [EMAIL PROTECTED] wrote:

 On Fri, 18 Nov 2005 04:46 am, Prakash R wrote:
  I'm using Arial font with FOP. I installed the
 fonts
  by following the step to install custom fonts from
 TTF
  on the FOP website using the TTFReader and adding
  entries in userconfig.xml.
 
  When I generate a PDF which uses the Arial font,
 the
  width of characters are different for uppercase
 and
  lowercase. The lowercase being lesser width. Is
 there
  anyway I can set any property so that the
 lowercase
  characters are also the same width as the
 uppercase
  characters?
 
 Arial is a so called proportional font. Not only
 have lowercase letters 
 different widths to uppercase letters but even
 within the same case 
 letters will have different widths, e.g. i will have
 a different width 
 to m and W is different in width to J.
 
 If a fixed character width is important to your
 layout you need to use a 
 fixed width (= non proportional) font. For example
 Courier.
 
  Thank you.
  Prakash
 
 Manuel
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FOP font width for custom font (Arial)

2005-11-17 Thread The Web Maestro

On Nov 17, 2005, at 4:17 PM, Prakash R wrote:
Thanks Manuel. I understand the difference now. Let me rephrase my 
question.


I'm using Arial font in FOP and when I render it to PDF with a 
specific font type and size (bold, size 12 pt) and I do the same with 
Microsoft word and print both. It is exact same line and same font 
etc. The Microsoft version of it is longer (when I overlay and 
compare) than the FOP version even though both are using the same 
fonts? Somehow the spacing of the characters/words seems to be 
different in FOP than with word.


Is this a known issue? Can this be corrected? This is causing some 
inconsistency between 2 formats namely word and PDF. Please help.


Thank you.
Prakash


There are a few questions you might be able to answer and/or ask:
- Does the Microsoft version use text-align=justify?
- Are the Character  Paragraph settings identical
  (MS Word has are a lot of options: condensed/expanded, char width, 
line-spacing, etc.)

- Are they generated on the same platform?
- Do the characters look identical, just the spacing is different?

Expecting FOP output to look identical to Microsoft is (IMO) asking a 
lot. For most uses, people aren't going to be comparing the two, so it 
isn't a problem. I suspect that if you really need the output to look 
identical, you might need to either start submitting patches to fix the 
problem or paying someone to submit patches. Either of which would be 
welcome (IMO)!


Regards,

Web Maestro Clay
--
[EMAIL PROTECTED] - http://homepage.mac.com/webmaestro/
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FOP font width for custom font (Arial)

2005-11-17 Thread The Web Maestro

On Nov 17, 2005, at 5:22 PM, Manuel Mall wrote

I just did my own test and the results are intriguing (using the latest
version of FOP). There is certainly a big difference between Word and
FOP.

It appears that FOP ignores the font-weight=bold. That is the text is
rendered identically for font-weight=bold and font-weight=normal.


This may be due to a lack of a font-triplet for BOLD, although you're 
using Arial (aren't you?) so IMO it should Just Work(tm)



Secondly it appears to be rendered in nearly the same size as Word
renders at font size 14.

This is when the font is embedded into the PDF.


This may be the problem. It may not be embedding the 'bold' version of 
the font for some reason.



Converting my FO example to HTML/CSS both IE and FireFox render it
identically and consistent with Word.

This seems to need some further investigation...


Regards,

Web Maestro Clay
--
[EMAIL PROTECTED] - http://homepage.mac.com/webmaestro/
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]