From: Jungshik Shin <[EMAIL PROTECTED]>
Happy 2004!
History so far: stock Mozilla on Linux does not render devanagari
correctly. That is well-known, but it is rumoured that a build
with CTL will do. No such builds are publicly available.
Building Mozilla is not entirely straightforward on a random Linux
machine. Different distributions fail in different ways. Fedora-1
is the first system encountered that compiles and runs Mozilla-1.6b.
Only, the resulting Mozilla still does not render devanagari correctly.
Here's one more try with a step-by-step instruction
(actually, there's not much to tell you because
you must have taken most of these steps)
1. download Sun Indic fonts, which you already did.
2. Put them into a directory of your choice
3. Edit /etc/fonts/local.conf or $HOME/.fonts.conf
and add the directory above to the font search path.
3b. fc-cache -v -f <directory_name>
4. Launch Mozilla (built with CTL and Xft) and enjoy.
5. _Optionally_, ...
Yes, indeed. I already took all of these steps, with the possible
exception of the "enjoy" part.
[one small side question: "fontconfig scans font directories regularly" -
what do you mean? Do you expect a crontab job?]
Mozilla-1.6b (built with CTL and Xft) does not show devanagari,
but boxes with hex unicode values.
For X11core build (with CTL but NOT with Xft), you have to follow the
step (which can be simplified slightly with chkfontpath available on
FC1/RH/Mandrake) described at (or equivalent
http://bugzilla.mozilla.org/show_bug.cgi?id=176315#c14
(The last two fields of XLFD for Sun Indic fonts should be
'sun.unicode.india-0' instead of 'hykoreanjamo-1').
I also already did precisely that.
Now Mozilla (built with CTL but not with Xft) shows devanagari, but
the i vowel is shown to the right instead of to the left of the v consonant.
See also
http://bugs.xfree86.org/show_bug.cgi?id=939
With the encoding file for Sun Indic fonts, you don't need
to make aliases.
Hmm. That yields a file sun.unicode.india-0.enc. Put it in the dir
with the Sun fonts and ran "mkfontdir -e ." to get an encodings.dir.
No difference in Mozilla output.
If you want to use 'standard' opentype fonts for Devanagari, you can
try the latest (but still old/outdated) patch
at http://bugzilla.mozilla.org/show_bug.cgi?id=215219
If you say that Mozilla 1.6b cannot be made to work, I give up.
Have no time to start a career as Mozilla hacker.
If it can, let us concentrate on that instead of starting too many
new avenues "you might also try ...".
Current situation: Almost vanilla Fedora-1 system, Sun Indic fonts,
two source trees with Mozilla-1.6b one configured with --enable-ctl
--enable-xft, the other only with --enable-ctl.
Both compile (with over a thousand error messages) and run (again
with oodles of complaints).
The X server on the other hand is on a different machine.
It runs xf86-4.2.0.
% cat /var/log/XFree86.0.log | grep -i render
XFree86 Font Renderer : 0.3
Module class: XFree86 Font Renderer
ABI class: XFree86 Font Renderer, version 0.3
(--) MGA(0): Direct rendering disabled
(II) Initializing built-in extension RENDER
%
So far the information of today.
Andries
--
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/