Re: Font-Problem depending on Java-VM

2004-01-28 Thread Matthias Schäfer
Chris Bowditch wrote:
Matthias Schäfer wrote:
Hello,
printing Text with " or ' with IBM 1.3.0 works fine. Trying SUN 
1.3.1_08 or SUN 1.3.1_09 I get squares instead of the expected 
Characters. 

This sounds like an encoding issue. What is the encoding of your FO file 
(or XML and XSL files) Also, what font are you using?
The result of converting a RTF-File from MS-Word with RTF2FO 
(rtf2fo.com) is a FO-File in "UTF-8". Changing Times to Helvetica 
doesn't change anything.

Saving the FO-File with XML-Spy as "ISO-8859-1" recognize the Characters 
 0x201E, 0x201C, 0x201A, 0x2019 as not representable. Replacing it with 
"_" shows "_" as expected. Changing this Character in XML-Spy with " 
(0x0034) and ' (0x0039) shows this Characters.
But there is one vital Difference. The Chars I entered are aligned at 
the top. The Original a aligned one at bottom, one at top.

In my next Test I entered the Chars " (0x0034) and ' (0x0039) again in a 
Textfile with Notepad. After saving this File with Word as RTF I convert 
 it with RTF2FO. Now I get the Characters as I typed in.

So the problem seems to be the special Chars of Unicode-Table 20. But is 
it FOP or is it the Java-VM ?


With SUN 1.4.2_01 it works only with fop-0.20.5rc2, but not with 
fop-bidi (from Oleg Tkachenko) because of 
"java.lang.NoClassDefFoundError: sun/awt/font/Bidi".
Unfortunately I need the Bidi-Version !

The bidi classes are only available since JDK 1.4. You will need to 
compile and run using JDK 1.4 or later.

I guess I have to use the JDK-Class in java.text.Bidi instead of 
sun/awt/font/Bidi used with older JDK's ?

Chris

-
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: Font-Problem depending on Java-VM

2004-01-28 Thread J.Pietschmann
Matthias Schäfer wrote:
The result of converting a RTF-File from MS-Word with RTF2FO
(rtf2fo.com) is a FO-File in "UTF-8".
Word typically uses "smart quotes", or typographical quotes, if
you type an apostrophe or a double quote on the keyboard. They
correspond to the following Unicode codepoints
U+201E comma quotation mark, low double
U+201C comma quotation mark, double turned
U+201A comma quotation mark, low single
U+2019 comma quotation mark, single
Changing Times to Helvetica doesn't change anything.
Well, the problem is that neither the built-in Times nor
Courier font has glyphs for this
So the problem seems to be the special Chars of Unicode-Table 20. But is
it FOP or is it the Java-VM ?
Are you sure it's not an encoding problem? Files get
mangled in transfer, occasionally.
I guess I have to use the JDK-Class in java.text.Bidi instead of
sun/awt/font/Bidi used with older JDK's ?
Probably. Ask Oleg for details. He seems to be off list.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Font-Problem depending on Java-VM

2004-01-27 Thread Matthias Schäfer
Chris Bowditch wrote:
Matthias Schäfer wrote:
Hello,
printing Text with " or ' with IBM 1.3.0 works fine. Trying SUN 
1.3.1_08 or SUN 1.3.1_09 I get squares instead of the expected 
Characters. 

This sounds like an encoding issue. What is the encoding of your FO file 
(or XML and XSL files) Also, what font are you using?
The result of converting a RTF-File from MS-Word with RTF2FO
(rtf2fo.com) is a FO-File in "UTF-8". Changing Times to Helvetica
doesn't change anything.
Saving the FO-File with XML-Spy as "ISO-8859-1" recognize the Characters
 0x201E, 0x201C, 0x201A, 0x2019 as not representable. Replacing it with
"_" shows "_" as expected. Changing this Character in XML-Spy with "
(0x0034) and ' (0x0039) shows this Characters.
But there is one vital Difference. The Chars I entered are aligned at
the top. The Original a aligned one at bottom, one at top.
In my next Test I entered the Chars " (0x0034) and ' (0x0039) again in a
Textfile with Notepad. After saving this File with Word as RTF I convert
 it with RTF2FO. Now I get the Characters as I typed in.
So the problem seems to be the special Chars of Unicode-Table 20. But is
it FOP or is it the Java-VM ?

With SUN 1.4.2_01 it works only with fop-0.20.5rc2, but not with 
fop-bidi (from Oleg Tkachenko) because of 
"java.lang.NoClassDefFoundError: sun/awt/font/Bidi".
Unfortunately I need the Bidi-Version !

The bidi classes are only available since JDK 1.4. You will need to 
compile and run using JDK 1.4 or later.

I guess I have to use the JDK-Class in java.text.Bidi instead of
sun/awt/font/Bidi used with older JDK's ?

Chris

-
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: Font-Problem depending on Java-VM

2004-01-26 Thread Chris Bowditch
Matthias Schäfer wrote:
Hello,
printing Text with " or ' with IBM 1.3.0 works fine. Trying SUN 1.3.1_08 
or SUN 1.3.1_09 I get squares instead of the expected Characters. 
This sounds like an encoding issue. What is the encoding of your FO file 
(or XML and XSL files) Also, what font are you using?

With 
SUN 1.4.2_01 it works only with fop-0.20.5rc2, but not with fop-bidi 
(from Oleg Tkachenko) because of "java.lang.NoClassDefFoundError: 
sun/awt/font/Bidi".
Unfortunately I need the Bidi-Version !
The bidi classes are only available since JDK 1.4. You will need to 
compile and run using JDK 1.4 or later.


Chris

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


RE: Font problem

2002-12-17 Thread Henrik Olsson

Ok that works.
But I guess its still a bug that you cant put inherit into font-weight, font-style attributes?
Since it messes things up for the FontInfo.

/Henrik








"Peter Sparkes" <[EMAIL PROTECTED]>
2002-12-17 16:35
Please respond to fop-user

        
        To:        <[EMAIL PROTECTED]>
        cc:        
        Subject:        RE: Font problem



font-weight,font-style, and  font-sizeare authomaticcaly inherited,  They only have to be included when their values are changed. Remove  all
"font-weight="inherit" font-style="inherit"  font-size="inherit" and your fo works OK
 
Peter  
-Original Message-
From: Henrik Olsson  [mailto:[EMAIL PROTECTED]
Sent: 17 December 2002  12:57
To: [EMAIL PROTECTED]
Subject: Font  problem



Hi im trying to  use inherit in attributes font-weight, font-style, as I understand it's  supposed to be allowed. 

But im  getting this error when I'm tryuing to render anything and the wrong font  turns up 

[ERROR] defaulted font to  any,normal,normal 
[ERROR] unknown font  Times,inherit,inherit so defaulted font to any 

Is this a bug or am I doing some thing wrong?  

Example: 


 
  
 
  
  
  
  
 
 
 
 
 
 
 
Calc fact  
 
 
 
 
 
 
 




RE: Font problem

2002-12-17 Thread Peter Sparkes



font-weight, font-style, and 
font-size are authomaticcaly inherited, 
They only have to be included when their values are changed. Remove 
all
"font-weight="inherit" font-style="inherit" 
font-size="inherit" and your fo works OK
 
Peter 


  -Original Message-From: Henrik Olsson 
  [mailto:[EMAIL PROTECTED]Sent: 17 December 2002 
  12:57To: [EMAIL PROTECTED]Subject: Font 
  problemHi im trying to 
  use inherit in attributes font-weight, font-style, as I understand it's 
  supposed to be allowed. But im 
  getting this error when I'm tryuing to render anything and the wrong font 
  turns up [ERROR] defaulted font to 
  any,normal,normal [ERROR] unknown font 
  Times,inherit,inherit so defaulted font to any Is this a bug or am I doing some thing wrong? 
  Example:   

   
   
   
 Calc fact