On Fri, 19 Dec 2003, Eric Streit wrote:
> I have a "small" question ...
>
> The pages are perfectly rendered on the screen, but when it comes to
> printing, only one encoding is done and all the other glyphs are
> converted to "missing-caracters".

> Why not Mozilla ?

That's partly because Mozilla's printing on Unix have a lot of things
to improve and partly because you didn't configure it properly. Well,
the latter is also partly due to the former (it should be easier and more
intuitive to configure). In my posting in this thread, I explained three
different printing 'modules' and gave some refernces. If you're interested
in printing Latin letters and Cyrillic letters, all three methods should
work, but Xprint and Freetype printing should give you better results
than the default PS module (which is always the case for any script).
How to use Xprint with Mozilla is well documented in
<http://xprint.mozdev.org>. As for freetype printing, you have to
edit either the global (system-wide) unix.js (found in
places like /usr/lib/mozilla-1.5/defaults/prefs/unix.js. From this,
you may guess where it's actually placed on your system) or
per-profile configuration file prefs.js in
$HOME/.mozilla/<profile_name>/<salted_name>/prefs.js (where
<salted_name> is like 'k9xkxtyu.slt') to add the following:

pref("font.FreeType2.enable", true);
pref("font.FreeType2.printing", true); //on by default in mozilla.org builds.
pref("font.freetype2.shared-library", "libfreetype.so.6");
pref("font.directory.truetype.1", "/true/type/dir/1st");
pref("font.directory.truetype.2", "/true/type/dir/2nd");
....
pref("font.directory.truetype.n", "/true/type/dir/nth");

where /true/type/dir/1st' and '.../nth' are directories with truetype
fonts.

If you edit the latter (per-profile user configuration), you have to use
'user_pref' in place of 'pref'. The latter should be edited while Mozilla
is NOT running. Alternatively, you can edit them by typing 'about:config'
in the location bar. In the 'filter' box at the top of the page, type
'freetype' and you can change the value as you wish by right-clicking
with a pref. entry you want to edit selected. If you want to add a new
entry, you can choose 'New | Entry type' in the pop-up menu that comes up.

Hope this helps,

Jungshik
--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/

Reply via email to