QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 697|回复: 2

制作属于你自己的XFT Mozilla!

[复制链接]
发表于 2003-6-19 07:50:18 | 显示全部楼层 |阅读模式
Roll Your Own XFT Mozilla



Xfree86-4.3 or better now has built in Xft support which greatly improve the look of fonts in KDE or Gnome when Anti-Aliased fonts are enabled.

1) Upgrade the following packages:

XFree86-4.3
XFree86-100dpi-fonts-4.3
XFree86-75dpi-fonts-4.3
XFree86-libs-4.3
XFree86-xfs-4.3


2) If you can't locate an Xft enabled version of Mozilla for your distro or if you'd rather build your own Mozilla with XFT (anti-alias fonts), just follow the instructions below after upgrading your XFree packages.

Mozilla-XFT Screenshot

3) From a console type mkdir /opt/mozilla-source, then download the latest stable Mozilla source from the link below and save to the new/opt/mozilla-source directory.

mozilla-source-1.2.1.tar.bz2


4) Type cd /opt/mozilla-source.


5) Unzip the file with:

tar xvjf ./mozilla-source-1.2.1.tar.bz2


6) Next, type:

cd mozilla
touch .mozconfig

Open the .mozconfig file you just created with your favorite text editor and add whatever options you see fit, I used:

ac_add_options --enable-crypto
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --enable-strip
ac_add_options --enable-strip-libs
ac_add_options --enable-optimize="-O2 -march=i686"
ac_add_options --enable-xft

Note:
Change march=i686 to the appropriate setting for your system. To disable Mail-News or Composer, add the following entries.

ac_add_options --disable-mailnews
ac_add_options --disable-composer


7) Type:

export MOZILLA_OFFICIAL=1
export BUILD_OFFICIAL=1
export MOZ_INTERNAL_LIBART_LGPL=1


Now we compile Mozilla with:

./configure
make


The make command will take a very long time, over an hour for me on a 1.4Ghz pc.


9) Normally the next step would be "make install" but we'll need to remove all the junk and keep the good stuff by typing:

cd xpinstall/packager
make

This will create a tarball in /opt/mozilla-source/mozilla/dist. Next, remove any previous versions of Mozilla and install the new Mozilla in /usr/local with:

cd /usr/local
tar xzvf /opt/mozilla-source/mozilla/dist/mozilla-i686-pc-linux-gnu.tar.gz


10) You should now be able to run Mozilla with the commands below, feel free to make or update desktop shortcuts to point to the new Mozilla. Once you determine Mozilla is running satisfactory it's safe to go ahead and delete the mozilla-source directory in /opt, don't forget to save the mozilla-i686-pc-linux-gnu.tar.gztarball first.


/usr/local/mozilla/mozilla (opens browser)
/usr/local/mozilla/mozilla -mail (opens mail-news client)
/usr/local/mozilla/mozilla -edit (opens composer)


注意,在其他的路径一样可以编译成功,但是不建议用src的rpm包编译!!!
 楼主| 发表于 2003-6-19 08:10:56 | 显示全部楼层

贴图如下!

特点:
速度快;
可以显示中文字体名;(乱码)不知何故,盼高人指点(我对汉化9窍通了8窍)
其他的正在发现当中

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复

使用道具 举报

 楼主| 发表于 2003-6-19 08:18:32 | 显示全部楼层
2:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-16 12:39 , Processed in 0.039624 second(s), 17 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表