classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] Re: Missing java.io character encoding aliases


From: Kevin Foley \( Quandis \)
Subject: [cp-patches] Re: Missing java.io character encoding aliases
Date: Mon, 28 Mar 2005 09:14:41 -0800

Hi Sven,

Thanks for the quick reply.  Sorry I didn't give more detail about what I
was trying to do.
I am trying to run FOP 0.20.5 with IKVM 0.12 as a C# VS2003 application,
using FOP
to embed fonts in the PDF .

I am using FOP's example \fo\advanced\cid-fonts.fo along with a
userconfig.xml file that embeds
a  font and maps it to one of the existing Arial and or Gothic fonts used by
the cid-fonts.fo file.

FOP was dying when embedded fonts were being used when the
getUnicodeString() function
in \fop\fonts\FontFileReader.java made  a call to
String(a).getBytes("UnicodeBigUnmarked");

Once I added your patch for UnicodeBigUnmarked and UnicodeLittleUnmarked it
got past
this error, it then died on a to UnicodeBig, which is used by the
readTTFString() in
FontfileReader.java.

I did Google scans for UnicodeBig & UnicodeLittle and found references to
them using then
same UTF16LE / UTF16BE fonts.

I threw those alias references to UnicodeBig & UnicodeLittle in and now FOP
works and
correctly embeds the fonts.

You mentioned that these fonts are missing a byte-order mark, it didn't seem
to have
a negative effect.

Whether or not it should work is another question, and how long until it
causes a problem
with a different font?  Don't know the answer to that one..

Sorry I had a typo on my request of UnicodeLittled - it should be
UnicodeLittle.

Is this important to you?

Adding these to your project right now isn't a big deal for me since I can
get around it by
adding these aliases to my C# code.

Thanks for your help in solving my problem ( your post about adding
UnicodeBigUnmarked
got me started on the right road )

Regards,

Kevin Foley
address@hidden



The \fop\fonts\FontFileReader.java

----- Original Message ----- From: "Sven de Marothy" <address@hidden>
To: <address@hidden>
Cc: <address@hidden>
Sent: Sunday, March 27, 2005 8:16 AM
Subject: Re: Missing java.io character encoding aliases


>Hello,

If you haven't already could you please also add:
("gnu.java.io.encoding_scheme_alias.UnicodeLittle", "UTF16LE");
("gnu.java.io.encoding_scheme_alias.UnicodeBig", "UTF16BE");

Regards,

Kevin Foley

You're right in that these are missing, but they're not same though,
since UnicodeBig and UnicodeLittle have a byte-order mark. These haven't
been implemented, it seems.

Although it'd be trivial to create these, I'm a bit hesitant to add new
encoders/decoders to the java.io stuff, since we're really planning on
scrapping them and moving it all over to the java.nio encoders. (as in
java 1.4)

Is this important to you?

/Sven







reply via email to

[Prev in Thread] Current Thread [Next in Thread]