[Indic-computing-devel] Re: saraswati PCF format - mozilla ctl (Success)
Status: Alpha
Brought to you by:
jkoshy
From: Sumedh T. <sum...@ya...> - 2004-01-08 19:32:28
|
I finally got this working with the TTF font on my redhat9.0 system. its the latest 1.7a .. interestingly enough I was getting the gmodule error etc. when I did the standard ./configure make and make install. But when i used the gmake -f client.mk build .. things stared working fine. The other mistake I was making was that I had installed the font for the core X and was doing the build for XFT. once i installed the fonts for xconfig it works like a charm. The only thing is that the font size is small. Do you guys know why Open Type fonts still don't work on linux? Jungshik, Prabhat, Alok and others, you guys are doing a great job, please keep it up. Just so that others go through a less painful process than I did I have written down what I did and what were the problems, you can update your HowTo or something with this if needed so that its available through google search. Thanks again. Here is what i had to do if you guys want to post this as the latest info on one of the sites. *** install gtk-2.0-devl, glib-2.0-devl, pango, IDL and all the related packages. 1) pull the mozilla cvs tree starting with the client.mk file. setenv CVSROOT :pserver:ano...@cv...:/cvsroot cvs login password: anonymous) (You only need to login once) cvs co mozilla/client.mk cd mozilla ***before pulling the rest of the tree do the following. 2) create the ~/.mozconfig file with the options you want. in my case # sh # Build configuration script # # See http://www.mozilla.org/build/unix.html for build instructions. # # Options for client.mk. mk_add_options MOZ_MAKE_FLAGS=-j4 # Options for 'configure' (same as command-line options). # Do these to get a good ctl xft build ac_add_options --with-pthreads ac_add_options --enable-default-toolkit=gtk2 ac_add_options --enable-xft ac_add_options --enable-ctl # These are as per your preference ac_add_options --disable-composer ac_add_options --disable-debug ac_add_options --disable-mailnews ac_add_options --disable-ldap ac_add_options --disable-xprint ac_add_options --enable-crypto ac_add_options --disable-jsd *** I couldn't get the ctl to work well with a manual build using ./configure command and the above options. So create the above file that works best. *** Now pull the rest of the tree and do the compile. 3) gmake -f client.mk checkout (only first time. After that you can drop the 'checkout' at the end) 4) Just to be sure, you can build again using gmake -f client.mk build 5) get the two Saraswati fonts TTF from SUN. **very important install the fonts for the fontconfig/XFT system and not just the core X fonts if you do the --enable-xft build. Typical location for XFT font installation is /usr/share/fonts/ and use the fc-cache to update the font cache. 6) Now you can fire up the new mozilla binary from mozilla/dist/bin and in the font preferences change the fonts to 'Saraswati' for Unicode and Devnagri. and disable the 'let documents use their own fonts'. If you don't see the font in the font list, then the font is not in the right path. The test ofcourse is to go check the BBC website. Enjoy! - Sumedh __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus |