Hello! There is a comp with SuSE Linux Professional 9.0. When I try to work with the Internet where use Java applet with text written on CP1251 encoding, I cannot read the text. The default font on my system is KOI8-R. I try to install the TrueType fonts and create dir /usr/share/fonts/my_new_fonts where put CP1251 ttf fonts. But when I try to run ttmkfdir -o fonts.scale SuSE write that cannot find the command. How can I enable the CP1251 encodings? Thanks for any help. Ramis.
On 05 March 2004 pm 20:39, Ramis Sibiev wrote:
I try to install the TrueType fonts and create dir /usr/share/fonts/my_new_fonts where put CP1251 ttf fonts. But when I try to run ttmkfdir -o fonts.scale SuSE write that cannot find the command.
With SuSE 9.0, you don't need to manually create fonts.scale and fonts.dir. Just use SuSEConfig. First, copy/move my_new_fonts to /usr/X11R6/lib/X11/fonts/my_new_fonts. Then run (as root) "SuSEconfig --module fonts". This will produce the necessary fonts.dir and fonts.scale. Then, you can move my_new_fonts back to /usr/share/fonts. Second, you must make JRE aware of these new fonts: 1. Assume JDK is installed in /usr/java/jdk. Goto /usr/java/jdk/jre/lib/fonts and create symlinks to /usr/share/fonts/my_new_fonts/*.ttf 2. Merge the contents of /usr/share/fonts/my_new_fonts/*.ttf to /usr/java/jdk/jre/lib/fonts/fonts.dir. Don't forget to update the number at the first line. As usual, if you're unsure, backup /usr/java/jdk/jre/lib/fonts first. In case something goes wrong, you can easily restore your system. Regards, Verdi
participants (2)
-
Cincai Patron
-
Ramis Sibiev