OESF Portables Forum

Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => Personal Java/Jeode/J2ME Personal Profile => Topic started by: ludo on March 13, 2006, 02:29:31 am

Title: Fonts For Blackdown
Post by: ludo on March 13, 2006, 02:29:31 am
Thanks to Meanie' s help I have now babbletower runing succesfully on blakdown j2se.1.3).

The only last issue I have is that the japanese and chinese are displayed with question marks. I think it is a problem with the font.property file, located in

mnt/xqt/java/jre1.3.1/lib.

Do you know what to set to get the japanese and chinese displayed all right?

In
http://java.sun.com/j2se/1.3/docs/guide/intl/fontprop.html (http://java.sun.com/j2se.1.3/docs/guide/intl/fontprop.html)

it is said that to get the display in a given language, you need to rename the font.propertie.language to font.propertie

So for example:

rename font.propertie.jp to  font.propertie

But then what will happen to the chinese?

After this I will be busy working on the dictionaries, so I doubt I will bother you anymore.

Thanks for any help

Ludo
Title: Fonts For Blackdown
Post by: Meanie on March 13, 2006, 07:13:39 pm
Quote
Thanks to Meanie' s help I have now babbletower runing succesfully on blakdown j2se.1.3).

The only last issue I have is that the japanese and chinese are displayed with question marks. I think it is a problem with the font.property file, located in

mnt/xqt/java/jre1.3.1/lib.

Do you know what to set to get the japanese and chinese displayed all right?

In
http://java.sun.com/j2se/1.3/docs/guide/intl/fontprop.html (http://java.sun.com/j2se.1.3/docs/guide/intl/fontprop.html)

it is said that to get the display in a given language, you need to rename the font.propertie.language to font.propertie

So for example:

rename font.propertie.jp to  font.propertie

But then what will happen to the chinese?

After this I will be busy working on the dictionaries, so I doubt I will bother you anymore.

Thanks for any help

Ludo
[div align=\"right\"][a href=\"index.php?act=findpost&pid=118297\"][{POST_SNAPBACK}][/a][/div]

What they really meant was that font.properties contains the definitions for what font and encodings is used by default. The other files contain sample definitions to change the default to the various languages, ie renaming fonts.properties.ja to fonts.properties would make japanese the defaultt, however, you can also combine all the font properties files into one huge font.properties which contains definitions for every language. This obviously would make java load all the possible fonts and hence use up a lot of more memory and be slower, thus they decided to have a sample file for each language so to minimise resource consumption and load speed. You can customise font.properties to load several languages, ie combine en, ja and cn into one font.properties. unfortunately, this would make the Zaurus load java even slower than it already does and consume even more scare memory.
Title: Fonts For Blackdown
Post by: ludo on March 13, 2006, 07:36:15 pm
Thanks Meanie

I did try to copy font.properties.ja to font.properties but it wouldn't allow me to do so. I did it either with su or su - or from Tree!text. In the console for example, the reply to

cp font.properties.ja font.properties

is

cp: write: invalid argument

and if I try to rename font.properties to font.properties (using cp), I get:

cp: unable to open 'font.properties.': permission denied

Moreover, any modification done with vi or in Tree!text is not actually saved.

I did a chmod 777 but it doesn't help at all.
It seems I can not write anything where  my font properties files are: in /mnt/xqt/java/jre1.3.1/lib

Do you know why and what I could do?

Ludo