自己安装的firefox 3.5字体太虚了
-
- 帖子: 130
- 注册时间: 2007-06-13 9:36
- 系统: ubuntuunity
自己安装的firefox 3.5字体太虚了
在ppa源里安装的firefox 3.5字体太虚了,系统自带的firefox 3.0.11就很好
有人知道是什么原因吗
有人知道是什么原因吗
- soething
- 帖子: 746
- 注册时间: 2008-07-23 19:06
Re: 自己安装的firefox 3.5字体太虚了
实际上。。。现在所有的3.5都比3.0虚那么一点点,就一点点。。
尝试使用system-cario的时候编译出错了。。。
尝试使用system-cario的时候编译出错了。。。
-
- 帖子: 27
- 注册时间: 2009-07-04 16:59
Re: 自己安装的firefox 3.5字体太虚了
--enable-system-cairo 出错的信息假如是和 framebuffer 相关的话,可以试试这个 patch
(hg tree 里最新的已经不需要这个补丁了)
136-fix_ftbfs_with_cairo_fb.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字体太虚了
mozilla/gfx/thebes/src/gfxASurface.cpp:61:32: 错误:gfxDirectFBSurface.h:没有该文件或目录
- soething
- 帖子: 746
- 注册时间: 2008-07-23 19:06
Re: 自己安装的firefox 3.5字体太虚了
呃,找到更新的补丁了
-
- 帖子: 73
- 注册时间: 2007-04-03 18:06
Re: 自己安装的firefox 3.5字体太虚了
正解:
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
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
-
- 帖子: 130
- 注册时间: 2007-06-13 9:36
- 系统: ubuntuunity
Re: 自己安装的firefox 3.5字体太虚了
太感谢ls的,搞定了
这下不用自己编译了
这下不用自己编译了
-
- 帖子: 76
- 注册时间: 2009-05-03 16:54
Re: 自己安装的firefox 3.5字体太虚了
6楼到命令创建的链接是错误的?应该是 ..conf.d?我这里好像没有效果?
-
- 帖子: 130
- 注册时间: 2007-06-13 9:36
- 系统: ubuntuunity
Re: 自己安装的firefox 3.5字体太虚了
6楼的命令没错啊
-
- 帖子: 76
- 注册时间: 2009-05-03 16:54
Re: 自己安装的firefox 3.5字体太虚了
我是错命名创建的 连接 是错误到
- 苹果虫
- 帖子: 185
- 注册时间: 2008-08-25 18:57
Re: 自己安装的firefox 3.5字体太虚了
编译3.6用不用system-cairo,效果没差耶
- soething
- 帖子: 746
- 注册时间: 2008-07-23 19:06
Re: 自己安装的firefox 3.5字体太虚了
哟咯。终于解决这个问题了。
http://blog.gsalex.net/2009/07/26/firefox-3-5-font/
修改主目录下的 .fonts.conf 文件
$ gedit ~/.fonts.conf
我的设置
可以逐项尝试各种选择,保存文件后无须重启 Firefox ,直接刷新即可。
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>
上次由 soething 在 2009-07-29 11:22,总共编辑 1 次。
-
- 帖子: 10
- 注册时间: 2008-03-11 16:41
Re: 自己安装的firefox 3.5字体太虚了
我试了下,还是比原来的firefox 3.0稍微虚了点。。不过还凑合吧。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