Hello m17n, Wenn Javadict starts I get th efolowing message: Warning: Cannot convert string "-sony-fixed-medium-r-normal--*-140-*-*-c-*-jisx0201.1976-0" to type FontStruct Warning: Name: Text Class: XmTextField Character '\122' not supported in font. Discarded. Everything works, except the dropdown list on the upper left for which should show the characters (If you use handwriting, or the dictionary) During the work, I get a lot of warnings like the above but with different char-codes: eg.: Warning: Name: Text Class: XmTextField Character '\346\260\227' not supported in font. Discarded. I think that it is the missing font. So my question is: a.) How can I get it? or b.) How can I change it? (I have -sony-fixed-medium-r-normal--*-150-*-*-c-*-jisx0201.1976-0 installed) Any clues? -- Best regards, Martin mailto:bruce_np@sbox.tugraz.at
Martin Lechner <bruce_np@sbox.tugraz.at> さんは書きました:
Wenn Javadict starts I get th efolowing message:
Warning: Cannot convert string "-sony-fixed-medium-r-normal--*-140-*-*-c-*-jisx0201.1976-0" to type FontStruct Warning: Name: Text Class: XmTextField Character '\122' not supported in font. Discarded.
Attached is a file font.properties.ja which you can copy to /usr/lib/java/jre/lib/font.properties.ja to avoid that warning and to get a bit nicer fonts (I assume that your are using the java2-jre package). The above font doesn't exist because "-sony-fixed-" is a bitmap font and it is not available in that size. It is possible to allow scaling of bitmap fonts by adding a font path /usr/X11R6/lib/X11/fonts/misc to your /etc/X11/XF86Config (or set it with "xset fp+ /usr/X11R6/lib/X11/fonts/misc"). Then the above font exists. But as scaled bitmap fonts are extremely ugly, the default is to disable the scaling of bitmap fonts, i.e. the default font paths look like this: /usr/X11R6/lib/X11/fonts/misc:unscaled The attached font.properties.ja uses the scalable "Kochi" TrueType fonts instead of the -jis-fixed- and -sony-fixed-.
Everything works, except the dropdown list on the upper left for which should show the characters (If you use handwriting, or the dictionary)
Actually this is not directly related to the warnings about the missing fonts. javadict works fine in ja_JP.eucJP locale but has the problems your describe (Mojibake in some places) when it is used in ja_JP.UTF-8. As a quick workaround I think it is OK to set the locale to ja_JP.eucJP again in the start script of javadict, like this: mfabian@magellan:~$ cat /usr/X11R6/bin/javadict #! /bin/bash PATH=$PATH:/usr/lib/java/bin # javadict doesn't work well in ja_JP.UTF-8, it shows mojibake in some # places when used in UTF-8. # As a workaround, force the locale to ja_JP.eucJP here: export LC_ALL=ja_JP.eucJP cd /usr/lib/javadict java JavaDict mfabian@magellan:~$ The javadict packages available here ftp;//ftp.suse.com/pub/people/mfabian/8.2-noarch/javadict-1.1-422.noarch.rpm ftp;//ftp.suse.com/pub/people/mfabian/8.2-src/javadict-1.1-422.src.rpm have this workaround included. I'll try to fix javadict for UTF-8 in the long run, but it is not that urgent as one doesn't really loose any functionality in javadict by setting the locale to ja_JP.eucJP for javadict. # @(#)font.properties.ja.linux 1.7 02/03/07 # # Copyright 2002 Sun Microsystems, Inc. All rights reserved. # # Component Font Mappings # serif.0=-b&h-lucidabright-medium-r-normal--*-%d-*-*-p-*-iso8859-1 serif.1=-kochi-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 serif.italic.0=-b&h-lucidabright-medium-i-normal--*-%d-*-*-p-*-iso8859-1 serif.italic.1=-kochi-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 serif.bold.0=-b&h-lucidabright-demibold-r-normal--*-%d-*-*-p-*-iso8859-1 serif.bold.1=-kochi-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 serif.bolditalic.0=-b&h-lucidabright-demibold-i-normal--*-%d-*-*-p-*-iso8859-1 serif.bolditalic.1=-kochi-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 sansserif.0=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1 sansserif.1=-kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 sansserif.italic.0=-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1 sansserif.italic.1=-kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 sansserif.bold.0=-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1 sansserif.bold.1=-kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 sansserif.bolditalic.0=-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1 sansserif.bolditalic.1=-kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 monospaced.0=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1 monospaced.1=-kochi-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 monospaced.italic.0=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1 monospaced.italic.1=-kochi-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 monospaced.bold.0=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1 monospaced.bold.1=-kochi-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 monospaced.bolditalic.0=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1 monospaced.bolditalic.1=-kochi-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 dialog.0=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1 dialog.1=-kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 dialog.italic.0=-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1 dialog.italic.1=-kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 dialog.bold.0=-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1 dialog.bold.1=-kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 dialog.bolditalic.0=-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1 dialog.bolditalic.1=-kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 dialoginput.0=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1 dialoginput.1=-kochi-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 dialoginput.italic.0=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1 dialoginput.italic.1=-kochi-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 dialoginput.bold.0=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1 dialoginput.bold.1=-kochi-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 dialoginput.bolditalic.0=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1 dialoginput.bolditalic.1=-kochi-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 # Missing Glyph Character # default.char=274f # Component Font Character Encodings # fontcharset.serif.0=sun.io.CharToByteISO8859_1 fontcharset.serif.1=sun.awt.motif.CharToByteX11JIS0208 fontcharset.sansserif.0=sun.io.CharToByteISO8859_1 fontcharset.sansserif.1=sun.awt.motif.CharToByteX11JIS0208 fontcharset.monospaced.0=sun.io.CharToByteISO8859_1 fontcharset.monospaced.1=sun.awt.motif.CharToByteX11JIS0208 fontcharset.dialog.0=sun.io.CharToByteISO8859_1 fontcharset.dialog.1=sun.awt.motif.CharToByteX11JIS0208 fontcharset.dialoginput.0=sun.io.CharToByteISO8859_1 fontcharset.dialoginput.1=sun.awt.motif.CharToByteX11JIS0208 # Exclusion Ranges # # XFontSet Information # fontset.serif.plain=\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0,\ -b&h-lucidabright-medium-r-normal--*-%d-*-*-p-*-iso8859-1,\ -kochi-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 fontset.serif.italic=\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0,\ -b&h-lucidabright-medium-i-normal--*-%d-*-*-p-*-iso8859-1,\ -kochi-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 fontset.serif.bold=\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0,\ -b&h-lucidabright-demibold-r-normal--*-%d-*-*-p-*-iso8859-1,\ -kochi-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 fontset.serif.bolditalic=\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0,\ -b&h-lucidabright-demibold-i-normal--*-%d-*-*-p-*-iso8859-1,\ -kochi-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 fontset.sansserif.plain=\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0,\ -b&h-lucida-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1,\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 fontset.sansserif.italic=\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0,\ -b&h-lucida-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1,\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 fontset.sansserif.bold=\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0,\ -b&h-lucida-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1,\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 fontset.sansserif.bolditalic=\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0,\ -b&h-lucida-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1,\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 fontset.monospaced.plain=\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0,\ -b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\ -kochi-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 fontset.monospaced.italic=\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0,\ -b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\ -kochi-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 fontset.monospaced.bold=\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0,\ -b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\ -kochi-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 fontset.monospaced.bolditalic=\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0,\ -b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\ -kochi-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 fontset.dialog.italic=\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0,\ -b&h-lucida-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1,\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 fontset.dialog.bold=\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0,\ -b&h-lucida-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1,\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 fontset.dialog.bolditalic=\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0,\ -b&h-lucida-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1,\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 fontset.dialog.plain=\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0,\ -b&h-lucida-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1,\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 fontset.dialoginput.italic=\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0,\ -b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\ -kochi-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 fontset.dialoginput.bold=\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0,\ -b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\ -kochi-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 fontset.dialoginput.bolditalic=\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0,\ -b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\ -kochi-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 fontset.dialoginput.plain=\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0,\ -b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\ -kochi-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 fontset.default=\ -kochi-gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0,\ -b&h-lucida-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1,\ -kochi-mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 -- Mike Fabian <mfabian@suse.de> http://www.suse.de/~mfabian 睡眠不足はいい仕事の敵だ。
participants (2)
-
Martin Lechner
-
Mike FABIAN