David Jensen wrote:
A bit more poking around shows, for both seamonkey and firefox:

ac_add_options --enable-pango does not really enable Thai, that needs an additional option.
Could you please point me to the source that led you definitely to this conclusion? There are sources that say the contrary:

http://permalink.gmane.org/gmane.comp.mozilla.internationalization/861
http://developer.mozilla.org/en/docs/index.php?title=User:Biesi/Configure_options&printable=yes

(note the "Probably pointless when pango is enabled?")

and the fact that --enable-ctl brings an internal stripped-down copy of Pango into the browser (see directory names in the source).

This is how Debian builds Firefox (from about:buildconfig):

--host=i486-linux-gnu --build=i486-linux-gnu --prefix=/usr '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' --enable-default-toolkit=gtk2 --with-default-mozilla-five-home=/usr/lib/firefox --enable-pango --with-user-appdir=.mozilla --with-system-png=/usr --with-system-jpeg=/usr --disable-mailnews --disable-composer --disable-ldap --enable-postscript --disable-installer --enable-xprint --enable-crypto --disable-strip --disable-strip-libs --enable-canvas --enable-svg --enable-svg-renderer=cairo --enable-system-cairo --enable-mathml --disable-tests --disable-gtktest --disable-debug --enable-xft '--enable-optimize=-pipe\ -w\ -O2\ -g' --with-system-zlib=/usr --without-system-nspr --enable-xinerama --enable-extensions=default --disable-pedantic --disable-long-long-warning --enable-single-profile --disable-profilesharing --enable-gnomevfs --enable-application=browser --disable-installer --disable-updater --enable-chrome-format=flat --disable-elf-dynstr-gc --enable-static --disable-shared

The notes in the .mozconfig misled (at least) me. Should we add to the .mozconfigs after enable-pango:

# For Thai Complex Script support.
#ac_add_options --enable-ctl
It is added on many Thai sites together with Pango, but, given the above, I am not sure if this is really needed. My understanding is that --enable-ctl is for Firefox 1.0.x, and --enable-pango is for 1.5.x.

Anyway, adding --enable-pango results in some regressions even on English text (e.g., miscalculation of the width of any text containing the "fi" or "ff" substring if the font has such ligatures - select it in order to see the effect). See also http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=firefox;dist=unstable;include=fix-disable-pango

So, distros usually build their Firefox with --enable-pango, but disable it by default at runtime with MOZ_DISABLE_PANGO=1 in the environment.

--
Alexander E. Patrakov
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to