自己安装的firefox 3.5字体太虚了

上网、浏览、聊天、下载等
回复
squall724
帖子: 130
注册时间: 2007-06-13 9:36
系统: ubuntuunity

自己安装的firefox 3.5字体太虚了

#1

帖子 squall724 » 2009-07-04 17:34

在ppa源里安装的firefox 3.5字体太虚了,系统自带的firefox 3.0.11就很好
有人知道是什么原因吗
头像
soething
帖子: 746
注册时间: 2008-07-23 19:06

Re: 自己安装的firefox 3.5字体太虚了

#2

帖子 soething » 2009-07-04 17:38

实际上。。。现在所有的3.5都比3.0虚那么一点点,就一点点。。

尝试使用system-cario的时候编译出错了。。。
Caledonia
帖子: 27
注册时间: 2009-07-04 16:59

Re: 自己安装的firefox 3.5字体太虚了

#3

帖子 Caledonia » 2009-07-04 17:54

--enable-system-cairo 出错的信息假如是和 framebuffer 相关的话,可以试试这个 patch
(hg tree 里最新的已经不需要这个补丁了)

136-fix_ftbfs_with_cairo_fb.patch

代码: 全选

#
# Ubuntu: none
# Upstream: none
# Description: fix FTBFS with cairo 1.8.4 that is built with directfb,
#  triggering some new code, even when directfb was not wanted/detected
#  in configure
#
---
 gfx/thebes/src/gfxASurface.cpp |    4 ++++
 1 file changed, 4 insertions(+)

Index: mozilla/gfx/thebes/src/gfxASurface.cpp
===================================================================
--- mozilla.orig/gfx/thebes/src/gfxASurface.cpp
+++ mozilla/gfx/thebes/src/gfxASurface.cpp
@@ -50,19 +50,21 @@
 #include "gfxXlibSurface.h"
 #endif
 
 #ifdef CAIRO_HAS_QUARTZ_SURFACE
 #include "gfxQuartzSurface.h"
 #include "gfxQuartzImageSurface.h"
 #endif
 
+#ifdef MOZ_DFB
 #ifdef CAIRO_HAS_DIRECTFB_SURFACE
 #include "gfxDirectFBSurface.h"
 #endif
+#endif
 
 #ifdef CAIRO_HAS_QPAINTER_SURFACE
 #include "gfxQPainterSurface.h"
 #endif
 
 #include <stdio.h>
 #include <limits.h>
 
@@ -166,21 +168,23 @@
 #ifdef CAIRO_HAS_QUARTZ_SURFACE
     else if (stype == CAIRO_SURFACE_TYPE_QUARTZ) {
         result = new gfxQuartzSurface(csurf);
     }
     else if (stype == CAIRO_SURFACE_TYPE_QUARTZ_IMAGE) {
         result = new gfxQuartzImageSurface(csurf);
     }
 #endif
+#ifdef MOZ_DFB
 #ifdef CAIRO_HAS_DIRECTFB_SURFACE
     else if (stype == CAIRO_SURFACE_TYPE_DIRECTFB) {
         result = new gfxDirectFBSurface(csurf);
     }
 #endif
+#endif
 #ifdef CAIRO_HAS_QPAINTER_SURFACE
     else if (stype == CAIRO_SURFACE_TYPE_QPAINTER) {
         result = new gfxQPainterSurface(csurf);
     }
 #endif
     else {
         result = new gfxUnknownSurface(csurf);
     }
Linux version 2.6.35-rc3-morality (ventus@dorentus) (gcc version 4.4.4 (Debian 4.4.4-5) ) #1 SMP Tue Jun 15 12:49:58 HKT 2010
头像
soething
帖子: 746
注册时间: 2008-07-23 19:06

Re: 自己安装的firefox 3.5字体太虚了

#4

帖子 soething » 2009-07-05 13:51

mozilla/gfx/thebes/src/gfxASurface.cpp:61:32: 错误:gfxDirectFBSurface.h:没有该文件或目录
头像
soething
帖子: 746
注册时间: 2008-07-23 19:06

Re: 自己安装的firefox 3.5字体太虚了

#5

帖子 soething » 2009-07-05 15:11

呃,找到更新的补丁了
yugo
帖子: 73
注册时间: 2007-04-03 18:06

Re: 自己安装的firefox 3.5字体太虚了

#6

帖子 yugo » 2009-07-08 17:42

正解:
cd /etc/fonts/
sudo mv conf.d/10-hinting-slight.conf .
sudo ln -s conf.avail/10-hinting-slight.conf conf.d/
sudo mv conf.d/10-hinting.conf .
sudo ln -s conf.avail/10-hinting.conf conf.d/
sudo dpkg-reconfigure fontconfig
squall724
帖子: 130
注册时间: 2007-06-13 9:36
系统: ubuntuunity

Re: 自己安装的firefox 3.5字体太虚了

#7

帖子 squall724 » 2009-07-09 9:03

太感谢ls的,搞定了
这下不用自己编译了
liziqiang
帖子: 76
注册时间: 2009-05-03 16:54

Re: 自己安装的firefox 3.5字体太虚了

#8

帖子 liziqiang » 2009-07-09 10:16

6楼到命令创建的链接是错误的?应该是 ..conf.d?我这里好像没有效果? :em11
squall724
帖子: 130
注册时间: 2007-06-13 9:36
系统: ubuntuunity

Re: 自己安装的firefox 3.5字体太虚了

#9

帖子 squall724 » 2009-07-09 10:25

6楼的命令没错啊
liziqiang
帖子: 76
注册时间: 2009-05-03 16:54

Re: 自己安装的firefox 3.5字体太虚了

#10

帖子 liziqiang » 2009-07-09 10:57

我是错命名创建的 连接 是错误到
头像
苹果虫
帖子: 185
注册时间: 2008-08-25 18:57

Re: 自己安装的firefox 3.5字体太虚了

#11

帖子 苹果虫 » 2009-07-09 13:23

编译3.6用不用system-cairo,效果没差耶
头像
soething
帖子: 746
注册时间: 2008-07-23 19:06

Re: 自己安装的firefox 3.5字体太虚了

#12

帖子 soething » 2009-07-26 18:48

哟咯。终于解决这个问题了。

http://blog.gsalex.net/2009/07/26/firefox-3-5-font/

修改主目录下的 .fonts.conf 文件
$ gedit ~/.fonts.conf

我的设置

代码: 全选

<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <match target="font" >
  <edit mode="assign" name="rgba" >
   <const>none</const> 
   <!-- 可选参数 : rgb bgr vrgb vbgr none -->
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="hinting" >
   <bool>true</bool>  
   <!--可选参数 :  true false -->
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="hintstyle" >
   <const>hintslight</const>  
   <!--可选参数 : hintnone hintslight hintmedium hintfull -->
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="antialias" >
   <bool>true</bool>
   <!--可选参数 :  true false -->
  </edit>
 </match>
</fontconfig>
可以逐项尝试各种选择,保存文件后无须重启 Firefox ,直接刷新即可。
上次由 soething 在 2009-07-29 11:22,总共编辑 1 次。
jacinto
帖子: 10
注册时间: 2008-03-11 16:41

Re: 自己安装的firefox 3.5字体太虚了

#13

帖子 jacinto » 2009-07-29 9:39

yugo 写了:正解:
cd /etc/fonts/
sudo mv conf.d/10-hinting-slight.conf .
sudo ln -s conf.avail/10-hinting-slight.conf conf.d/
sudo mv conf.d/10-hinting.conf .
sudo ln -s conf.avail/10-hinting.conf conf.d/
sudo dpkg-reconfigure fontconfig
我试了下,还是比原来的firefox 3.0稍微虚了点。。不过还凑合吧。
回复