[Indic-computing-devel] Re: saraswati PCF format - mozilla ctl
Status: Alpha
Brought to you by:
jkoshy
From: Jungshik S. <js...@ma...> - 2004-01-02 14:51:18
|
Alok Kumar wrote: > Hi Sumedh, > > --- Sumedh Thakar <sum...@ya...> wrote: > I tried > 1.5 with enable-ctl but the hindi > >>doesn't show correctly. The only thing i can think of is the >>font I downloaded in TTF format as against the PCF as mentioned. > While I do have the font in pcf format, I wonder if the ttf fonts are > also > supposed to work? > The problem has been reported elsewhere as well: > <http://archaeology.artefact.org.nz/archives/000091.html> > TTF should work, too. There are two different ways. The easier of two is to build your Mozilla with Xft and CTL enabled. Then, do the following: 1. put Saraswati fonts into one of directories looked into by fontconfig. 2. Launch Mozilla 3. go to Edit | Pref | Appearance | Font| Devanagari and set all four categories to Saraswati. 4. Also make sure that 'allow documents to use other fonts' is NOT checked If you still have a problem, launch Mozilla under hi_IN.UTF-8 (hi_IN.utf8) locale. That is, set your locale to that before launching Mozilla. $ LC_ALL=hi_IN.UTF-8 mozilla For an X11core font build, you need to do the following: 1. download sun.unicode.india-0.enc file from Xfree86 cvs (web interface or cvs command can be used) : see bug http://bugs.xfree86.org/show_bug.cgi?id=939 [1] 2. gzip and install it in /usr/X11R6/lib/fonts/encodings/large 3. put the Sun Indic TTF in a directory 4. run mkfontscale and mkfontdir (it'll add -altsys-saraswati5-medium-r-normal--0-0-0-0-p-0-iso10646-1 and antoher for bold) 5. add to fonts.scale and fonts.dir -altsys-saraswati5-medium-r-normal--0-0-0-0-p-0-sun.unicode.india-0 6. restart your X font server - give it a HUP signal - (if you use one) or your Xserver (if you don't use an x font server) 7. configure mozilla the way described above for Xft build. BTW, you may try my patch for bug 215219 (http://bugzilla.mozilla.org/show_bug.cgi?id=215219). It doesn't rely on Sun fonts but take advantage of opentype fonts. You have to build a mozilla with 'gtk2' and 'xft' (but ctl is NOT necessary). Jungshik [1] You don't need to download it, but that way it's easier (for an alternative, read my comment in the bug) and a bit faster. Besides, if you have a new version of mkfontscale (that knows about sun.unicode.india-0, you don't have to take step 5) P.S. Printing only works with Xprint. However, when my patch for bug 208213 (http://bugzilla.mozilla.org/show_bug.cgi?id=208213) is landed, printing with freetype2 should work as well. |