ml2.0.1希望解决字体配置问题>针对JRE
FreeMind跑不起来,还有几个别的软件也是同样问题export LANG=C / UTF-8可以(但不能输入)
gb18030不行
问题出在寻找默认Family的字体上。 $ ./freemind.sh
Looking for user properties:
/home/zslevin/.freemind/user.properties
User properties found.
Default (System) Look & Feel: javax.swing.plaf.metal.MetalLookAndFeel
Exception in thread "main" java.lang.IllegalArgumentException
at java.nio.Buffer.position(Unknown Source)
at sun.font.TrueTypeFont.lookupName(Unknown Source)
at sun.font.TrueTypeFont.getFamilyName(Unknown Source)
at sun.java2d.SunGraphicsEnvironment.getAvailableFontFamilyNames(Unknown Source)
at sun.java2d.SunGraphicsEnvironment.getAvailableFontFamilyNames(Unknown Source)
at freemind.main.Tools.getAvailableFontFamilyNames(Tools.java:179)
at freemind.main.Tools.isAvailableFontFamily(Tools.java:202)
at freemind.controller.Controller.<init>(Controller.java:228)
at freemind.main.FreeMind.<init>(FreeMind.java:227)
at freemind.main.FreeMind.main(FreeMind.java:647)
问题就在这里:
at freemind.main.Tools.getAvailableFontFamilyNames(Tools.java:179)
java找不到对应gb18030的默认字体。 有解决方法么?我不懂java。 我觉得如果你判定是字体问题,你用下面第一种方法就可以了,当java找不到对应字体会直接用fallback下的字体。
1 .建立目录:$JAVA_HOME/jre/lib/fonts/fallback;
2. cp中文字体到刚才建立的目录中,或者在这个目录中建立到中文字体的连接;
3. 大功告成。
4.如仍有问题,export JAVA_FONTS=$JAVA_HOME/jre/lib/fonts即可。
复杂的方法:
Sun公司的JRE(JAVA运行库)1.5.0版采用的字体设置方案跟1.4.2版的相去甚远。如果设置不当,Java程序中的中文会表现为方格。
本文给出了一般性的字体设置方法,并且在最后给出了本机测试通过的字体配置文件以供下载。
首先介绍一下其字体配置文件的加载方案。其加载顺序为(JavaHome指JRE的根目录,下同):
JavaHome/lib/fontconfig.OS.Version.properties
JavaHome/lib/fontconfig.OS.Version.bfc
JavaHome/lib/fontconfig.OS.properties
JavaHome/lib/fontconfig.OS.bfc
JavaHome/lib/fontconfig.Version.properties
JavaHome/lib/fontconfig.Version.bfc
JavaHome/lib/fontconfig.properties
JavaHome/lib/fontconfig.bfc
其中,OS字段可以是:
Windows: “98″, “2000″, “Me”, “XP”, “2003″。
Solaris:空。
Linux: “Sun”, “RedHat”, “Turbo”, “SuSE”。
而Version字段指该OS的版本号。
默认如果存在$JavaHome/lib/fontconfig.properties,则该文件具有绝对优先权做为JAVA的字体配置文件。
在这些配置文件中,仅.properties文件是文本文件。其格式跟JRE1.4.2版的不同。文件分为几段,并在每段开始时标明。
我们需要关注的仅有两段:Component Font Mappings和Search Sequences。
前者指定字体,后者指定要使用的properties的搜索顺序。
知道了这些,配置起来就简单了。
首先,设置字体文件,一般来说,Slackware 系统的字体配置文件在/etc/fonts/fonts.conf 里面设置,我比较习惯将额外的中文字体放在 /usr/share/fonts下面,为了节约空间,在JRE的字体目录JavaHome/lib/fonts下 建立一个符号连接,指向我用的中文字体,(比如,宋体Simsun.ttf):
ln -s /usr/share/fonts/simsun.ttf simsun.ttf
然后运行字体库生成命令: mkfontscale,生成需要的字体库文件fonts.dir:
JavaHome/lib/fonts# mkfontscale
JavaHome/lib/fonts# mv fonts.scale fonts.dir
然后,转到目录JavaHome/lib下,随便找一个.properties.src文件,用文本编辑器打开,并编辑如下:
# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
#
# Version
version=1
# Component Font Mappings
serif.plain.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
serif.bold.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
serif.italic.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
serif.bolditalic.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
sansserif.plain.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
sansserif.bold.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
sansserif.italic.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
sansserif.bolditalic.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
monospaced.plain.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
monospaced.bold.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
monospaced.italic.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
monospaced.bolditalic.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
dialog.plain.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
dialog.bold.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
dialog.italic.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
dialog.bolditalic.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
dialoginput.plain.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
dialoginput.bold.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
dialoginput.italic.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
dialoginput.bolditalic.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
dialoginput.bolditalic.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
# Search Sequences
sequence.allfonts=zh-1
# Exclusion Ranges
# Font File Names
# AWT X11 font paths
上面这个文件中最重要的是字体名,也就是:-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
这个东西,你可以根据fonts.dir里面的内容,选取一个合适的中文字体使用。
然后按照上面所述的文件名格式保存在这个目录下。如Redhat系统的就保存为fontconfig.RedHat.properties, WindowsXP的就保存为fontconfig.XP.properties,不知道自己系统是什么的,就直接保存为 fontconfig.properties。
现在,启动Java程序看看,漂亮的JRE1.5的中文界面是不是出来了? 见到有人回答这个问题很高兴,我在使用freemind时也是在这个问题上过不去,试了版主的方法,还是不行。使用的系统为ML2.0。JAVA_HOME=/usr/java/jre1.5.0_05/。
在/usr/java/jre1.5.0_05/lib目录下只保留了一个fontconfig.properties文件。因为附后,但出错信息相同。
# @(#)linux.fontconfig.properties 1.2 03/10/28
#
# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
#
# Version
version=1
# Component Font Mappings
#serif.plain.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
#serif.bold.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
#serif.italic.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
#serif.bolditalic.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
#sansserif.plain.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
#sansserif.bold.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
#sansserif.italic.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
#sansserif.bolditalic.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
#monospaced.plain.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
#monospaced.bold.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
#monospaced.italic.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
#monospaced.bolditalic.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
#dialog.plain.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
#dialog.bold.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
#dialog.italic.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
#dialog.bolditalic.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
#dialoginput.plain.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
#dialoginput.bold.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
#dialoginput.italic.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
#dialoginput.bolditalic.latin-1=-misc-ar pl shanheisun uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1
serif.plain.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
serif.bold.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
serif.italic.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
serif.bolditalic.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
sansserif.plain.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
sansserif.bold.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
sansserif.italic.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
sansserif.bolditalic.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
monospaced.plain.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
monospaced.bold.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
monospaced.italic.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
monospaced.bolditalic.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
dialog.plain.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
dialog.bold.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
dialog.italic.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
dialog.bolditalic.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
dialoginput.plain.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
dialoginput.bold.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
dialoginput.italic.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
dialoginput.bolditalic.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
dialoginput.bolditalic.zh-1=-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0
# Search Sequences
#sequence.allfonts=latin-1
sequence.allfonts=zh-1
#sequence.allfonts.GB18030=latin-1,chinese-gb18030
# Exclusion Ranges
# the fallback sequence omits the following character subsets:
#sequence.fallback=chinese-gb18030
# Font File Names
#filename.-misc-ar_pl_shanheisun_uni-medium-r-normal--*-%d-*-*-c-*-iso10646-1=/usr/share/fonts/ttf/zh_CN/uming.ttf
#filename.-misc-simsun-medium-r-normal0-0-0-0-p-0-gb18030.2000-0=/usr/share/fonts/ttf/zh_CN/simsun.ttf
# AWT X11 font paths
#awtfontpath.latin-1=/usr/share/fonts
awtfontpath.zh-1=/usr/share/fonts/ttf/zh_CN
查看在fonts.dir中没有gb18030.2000的字样,只有Gb2312。1980,强制加入也没有改观。
请版主再提示一二,谢谢 依赖ml来解决这个问题不是很现实。只能靠配置的办法了。
sun java的license有发布上的限制。
如果用gcj的话,可能还好办一些。 不是Java的问题,是和系统字体文件配置有关,比如我还用jre1.4.2,在ML2上仍然不行,而
ML1.2f版本是没有问题的。 不得已的方法是直接改了freemind的代码让他能用,但其它还有好几个软件也是同样问题:
下载freemind源码,把main/Tool.java里的这行
String envFonts[] = gEnv.getAvailableFontFamilyNames();
修改为:
String envFonts[] = { "Courier","Cursor","DejaVu Sans","DejaVu Serif","Simsun","Tahoma" }
强行指定字体。
然后用jar 解开freemind.jar
替换掉里面的Tool.class
前些时候和zslevin 讨论,他的回复:
问题就在于 gEnv.getAvailableFontFamilyNames(),可能是 ML2 某个字体名称不符合要求?见:
http://groups.google.com/group/mailing.freebsd.java/browse_thread/thread/323c8b2e83c970e3/6fa076c606394ac7?lnk=st&q=java.nio.Buffer.position+sun.font.TrueTypeFont*&rnum=1&hl=en#6fa076c606394ac7
PS。 Kanker 的 ML2 就可以正常运行,当然,他的系统机器改动过,但不知改了些什么。 如果是这样,很可能就是fontconfig的问题了。
需要进一步的信息 需要什么样的信息?如何得到这些信息?我来做试验。 ml 1.2和ml 2.0的/etc/font/fonts.conf(精确的记不清了)
做一下diff? $ diff -r ./fonts/ /etc/fonts
Only in /etc/fonts/conf.d: 10-fonts-persian.conf
Only in /etc/fonts/conf.d: 10mgc-default.conf
Only in /etc/fonts/conf.d: 30blacklist-fonts.conf
Only in /etc/fonts/conf.d: 40enable-replaced.conf
Only in ./fonts/conf.d: 40family-name.conf
Only in /etc/fonts/conf.d: 50no-small-fonts.conf
Only in /etc/fonts/conf.d: avoid-bitmap.conf
Only in /etc/fonts/conf.d: enable-antialias.conf
Only in /etc/fonts/conf.d: no-bitmaps.conf
diff -r ./fonts/fonts.conf /etc/fonts/fonts.conf
74a75
> <family>DejaVu Serif</family>
76a78,84
> <family>SimSun</family>
> <family>SimSun-18030</family>
> <family>DongWen SongTi</family>
> <family>FZSongTi</family>
> <family>WenQuanYi Bitmap Song</family>
> <family>AR PL ShanHeiSun Uni</family>
> <family>AR PL New Sung</family>
87,88c95
< <family>AR PL New Sung</family>
< <family>AR PL ShanHeiSun Uni</family>
---
> <family>MgOpen Canonica</family>
94a102
> <family>DejaVu Sans</family>
96c104
< <family>Helvetica</family>
---
> <family>Tahoma</family>
98a107,114
> <family>SimSun</family>
> <family>SimSun-18030</family>
> <family>DongWen SongTi</family>
> <family>FZSongTi</family>
> <family>WenQuanYi Bitmap Song</family>
> <family>AR PL ShanHeiSun Uni</family>
> <family>AR PL New Sung</family>
> <family>Helvetica</family>
107,108d122
< <family>SimSun</family>
< <family>SimSun-18030</family>
110c124
< <family>AR PL ZenKai Uni</family>
---
> <family>MgOpen Modata</family>
116a131
> <family>DejaVu Sans Mono</family>
117a133,139
> <family>NSimSun</family>
> <family>NSimSun-18030</family>
> <family>DongWen SongTi</family>
> <family>FZSongTi</family>
> <family>WenQuanYi Bitmap Song</family>
> <family>AR PL ShanHeiSun Uni</family>
> <family>AR PL New Sung</family>
124,125d145
< <family>NSimSun</family>
< <family>NSimSun-18030</family>
146a167,222
><!--
>provides metric and shape compatible fonts for these three Microsoft font
>families.
>-->
> <alias>
> <family>Times New Roman</family>
> <prefer><family>DejaVu Serif</family></prefer>
> <default><family>Bitstream Vera Serif</family></default>
> </alias>
> <alias>
> <family>Arial</family>
> <prefer><family>DejaVu Sans</family></prefer>
> <default><family>Bitstream Vera Sans</family></default>
> </alias>
> <alias>
> <family>Verdana</family>
> <prefer><family>DejaVu Sans</family></prefer>
> <default><family>Bitstream Vera Sans</family></default>
> </alias>
> <alias>
> <family>Helvetica</family>
> <prefer><family>DejaVu Sans</family></prefer>
> <default><family>Bitstream Vera Sans</family></default>
> </alias>
>
> <!-- some fonts alias -->
> <alias>
> <family>AR PL Mingti2L</family>
> <accept>
> <family>AR PL ShanHeiSun Uni</family>
> <family>AR PL New Sung</family>
> </accept>
> </alias>
> <alias>
> <family>AR PL SungtiL</family>
> <accept>
> <family>AR PL ShanHeiSun Uni</family>
> <family>AR PL New Sung</family>
> </accept>
> </alias>
>
> <!--
> default settings for all fonts.
> -->
> <match target="font" >
> <edit mode="assign" name="hinting" >
> <bool>true</bool>
> </edit>
> <edit mode="assign" name="hintstyle" >
> <const>hintmedium</const>
> </edit>
> <edit mode="assign" name="autohint" >
> <bool>false</bool>
> </edit>
> </match>
>
180,204d255
< <!--
< Some Asian fonts misadvertise themselves as monospaced when
< in fact they are dual-spaced (half and full).This makes
< FreeType very confused as it forces all widths to match.
< Undo this magic by disabling the width forcing code -->
< <match target="font">
< <test name="family"><string>GulimChe</string></test>
< <edit name="globaladvance"><bool>false</bool></edit>
< </match>
<
< <match target="font">
< <test name="family"><string>DotumChe</string></test>
< <edit name="globaladvance"><bool>false</bool></edit>
< </match>
<
< <match target="font">
< <test name="family"><string>BatangChe</string></test>
< <edit name="globaladvance"><bool>false</bool></edit>
< </match>
<
< <match target="font">
< <test name="family"><string>GungsuhChe</string></test>
< <edit name="globaladvance"><bool>false</bool></edit>
< </match>
<
214a266
> <string>DejaVu Sans</string>
226a279
> <string>DejaVu Serif</string>
238a292
> <string>DejaVu Sans Mono</string>
265a320
> <family>DejaVu Serif</family>
267a323,332
> <family>SimSun</family> <!-- han (zh-cn,zh-tw) -->
> <family>SimSun-18030</family>
> <family>ZYSong18030</family> <!-- han (zh-cn,zh-tw) -->
> <family>DongWen SongTi</family>
> <family>FZSongTi</family>
> <family>WenQuanYi Bitmap Song</family>
> <family>AR PL ShanHeiSun Uni</family> <!-- han (ja,zh-cn,zh-tw) -->
> <family>AR PL New Sung</family> <!-- han (zh-cn,zh-tw) -->
> <family>HanyiSong</family> <!-- han (zh-cn,zh-tw) -->
> <family>MS Song</family> <!-- han (zh-cn) -->
272a338,339
> <family>MgOpen Canonica</family>
> <family>FreeSerif</family>
274d340
< <family>AR PL ZenKai Uni</family>
279d344
< <family>FreeSerif</family>
284a350
> <family>DejaVu Sans</family>
285a352
> <family>Tahoma</family>
287a355,362
> <family>SimSun</family> <!-- han (zh-cn,zh-tw) -->
> <family>SimSun-18030</family>
> <family>ZYSong18030</family> <!-- han (zh-cn,zh-tw) -->
> <family>DongWen SongTi</family>
> <family>FZSongTi</family>
> <family>WenQuanYi Bitmap Song</family>
> <family>AR PL ShanHeiSun Uni</family> <!--han (ja,zh-cn,zh-tw) -->
> <family>AR PL New Sung</family> <!-- han (zh-cn,zh-tw) -->
292a368,369
> <family>MgOpen Modata</family>
> <family>FreeSans</family>
294,297d370
< <family>SimSun</family>
< <family>SimSun-18030</family>
< <family>AR PL New Sung</family>
< <family>AR PL ShanHeiSun Uni</family>
303d375
< <family>FreeSans</family>
308a381
> <family>DejaVu Sans Mono</family>
309a383,391
> <family>NSimSun</family> <!-- han (zh-cn,zh-tw) -->
> <family>NSimSun-18030</family>
> <family>ZYSong18030</family> <!-- han (zh-cn,zh-tw) -->
> <family>DongWen SongTi</family>
> <family>FZSongTi</family>
> <family>AR PL ShanHeiSun Uni</family> <!-- han (ja,zh-cn,zh-tw) -->
> <family>AR PL New Sung</family> <!-- han (zh-cn,zh-tw) -->
> <family>WenQuanYi Bitmap Song</family>
> <family>HanyiSong</family> <!-- han (zh-cn) -->
316a399
> <family>FreeMono</family>
318,320d400
< <family>NSimSun</family>
< <family>NSimSun-18030</family>
< <family>AR PL New Sung</family>
323d402
< <family>FreeMono</family>
352a432,435
> <!-- and disable embedded bitmaps for artificial oblique -->
> <edit name="embeddedbitmap" mode="assign">
> <bool>false</bool>
> </edit>
362c445
< <int>100</int>
---
> <const>medium</const>
365,366c448,449
< <test target="pattern" name="weight" compare="more_eq">
< <int>180</int>
---
> <test target="pattern" name="weight" compare="more">
> <const>medium</const>
368c451,454
< <!-- set the embolden flag -->
---
> <!--
> set the embolden flag
> needed for applications using cairo, e.g. gucharmap, gedit, ...
> -->
371a458,464
> <!--
> set weight to bold
> needed for applications using Xft directly, e.g. Firefox, ...
> -->
> <edit name="weight" mode="assign">
> <const>bold</const>
> </edit>
diff -r ./fonts/fonts.conf.rpmsave /etc/fonts/fonts.conf.rpmsave
3c3
< <!-- /etc/fonts.conf file to configure system font access -->
---
> <!-- /etc/fonts/fonts.conf file to configure system font access -->
6a7,10
> DO NOT EDIT THIS FILE.
> IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
> LOCAL CHANGES BELONG IN 'local.conf'.
>
10,12c14,15
< things that others will also want fixed.Please send any suggested
< changes to [email protected] so that future releases can include
< such changes.
---
> things that others will also want fixed.Please submit any
> problems to the fontconfig bugzilla system located at fontconfig.org
14c17
< Note that the normal 'make install' procedure for XFree86 is to
---
> Note that the normal 'make install' procedure for fontconfig is to
19d21
< <dir>/usr/X11R6/lib/X11/fonts</dir>
21a24
> <!-- Font directory list -->
23a27
> <dir>/usr/X11R6/lib/X11/fonts</dir>
27,36d30
< Enable sub-pixel rendering
< <match target="font">
< <test qual="all" name="rgba">
< <const>unknown</const>
< </test>
< <edit name="rgba" mode="assign"><const>rgb</const></edit>
< </match>
< -->
<
< <!--
80a75
> <family>Bitstream Vera Serif</family>
81a77
> <family>Thorndale AMT</family>
83d78
< <family>Simsun</family>
85a81,88
> <family>Kochi Mincho</family>
> <family>AR PL SungtiL GB</family>
> <family>AR PL Mingti2L Big5</family>
> <family>锛?汲 鏄庢湞</family>
> <family>Baekmuk Batang</family>
> <family>FreeSerif</family>
> <family>AR PL New Sung</family>
> <family>AR PL ShanHeiSun Uni</family>
91a95
> <family>Bitstream Vera Sans</family>
95c99
< <family>SimSun</family>
---
> <family>Albany AMT</family>
97a102,110
> <family>Kochi Gothic</family>
> <family>AR PL KaitiM GB</family>
> <family>AR PL KaitiM Big5</family>
> <family>锛?汲 銈淬偡銉冦偗</family>
> <family>Baekmuk Dotum</family>
> <family>SimSun</family>
> <family>SimSun-18030</family>
> <family>FreeSans</family>
> <family>AR PL ZenKai Uni</family>
103a117
> <family>Bitstream Vera Sans Mono</family>
107a122
> <family>Cumberland AMT</family>
109a125,126
> <family>NSimSun-18030</family>
> <family>FreeMono</family>
129c146,248
<
---
>
> <!--
> URW provides metric and shape compatible fonts for these 3 Adobe families.
> -->
> <alias>
> <family>Times</family>
> <accept><family>Nimbus Roman No9 L</family></accept>
> </alias>
> <alias>
> <family>Helvetica</family>
> <accept><family>Nimbus Sans L</family></accept>
> </alias>
> <alias>
> <family>Courier</family>
> <accept><family>Nimbus Mono L</family></accept>
> </alias>
>
> <!--
>AMT provides metric and shape compatible fonts for these three web font
>families.
>-->
> <alias>
> <family>Times New Roman</family>
> <accept><family>Thorndale AMT</family></accept>
> </alias>
> <alias>
> <family>Arial</family>
> <accept><family>Albany AMT</family></accept>
> </alias>
> <alias>
> <family>Courier New</family>
> <accept><family>Cumberland AMT</family></accept>
> </alias>
>
> <!--
> Some Asian fonts misadvertise themselves as monospaced when
> in fact they are dual-spaced (half and full).This makes
> FreeType very confused as it forces all widths to match.
> Undo this magic by disabling the width forcing code -->
> <match target="font">
> <test name="family"><string>GulimChe</string></test>
> <edit name="globaladvance"><bool>false</bool></edit>
> </match>
>
> <match target="font">
> <test name="family"><string>DotumChe</string></test>
> <edit name="globaladvance"><bool>false</bool></edit>
> </match>
>
> <match target="font">
> <test name="family"><string>BatangChe</string></test>
> <edit name="globaladvance"><bool>false</bool></edit>
> </match>
>
> <match target="font">
> <test name="family"><string>GungsuhChe</string></test>
> <edit name="globaladvance"><bool>false</bool></edit>
> </match>
>
> <!--
> The Bitstream Vera fonts have GASP entries suggesting that hinting be
> disabled below 8 ppem, but FreeType ignores those, preferring to use
> the data found in the instructed hints.The initial Vera release
> didn't include the right instructions in the 'prep' table. Fix this
> by disabling hinting manually at smaller sizes (< 8ppem)
>-->
>
> <match target="font">
> <test name="family">
> <string>Bitstream Vera Sans</string>
> </test>
> <test name="pixelsize" compare="less">
> <double>7.5</double>
> </test>
> <edit name="hinting">
> <bool>false</bool>
> </edit>
> </match>
>
> <match target="font">
> <test name="family">
> <string>Bitstream Vera Serif</string>
> </test>
> <test name="pixelsize" compare="less">
> <double>7.5</double>
> </test>
> <edit name="hinting">
> <bool>false</bool>
> </edit>
> </match>
>
> <match target="font">
> <test name="family">
> <string>Bitstream Vera Sans Mono</string>
> </test>
> <test name="pixelsize" compare="less">
> <double>7.5</double>
> </test>
> <edit name="hinting">
> <bool>false</bool>
> </edit>
> </match>
>
137a257
> <include ignore_missing="yes">conf.d</include>
141,160d260
< Alias well known font names to available TrueType fonts
< -->
< <alias>
< <family>Times</family>
< <accept><family>Times New Roman</family></accept>
< </alias>
< <alias>
< <family>Helvetica</family>
< <accept><family>Verdana</family></accept>
< </alias>
< <alias>
< <family>Arial</family>
< <accept><family>Verdana</family></accept>
< </alias>
< <alias>
< <family>Courier</family>
< <accept><family>Courier New</family></accept>
< </alias>
<
< <!--
165a266
> <family>Bitstream Vera Serif</family>
167,168c268
< <family>Simsun</family>
< <family>Nimbus Roman No9 L</family>
---
> <family>Thorndale AMT</family>
169a270
> <family>Nimbus Roman No9 L</family>
170a272,279
> <family>Frank Ruehl</family>
> <family>Kochi Mincho</family>
> <family>AR PL ZenKai Uni</family>
> <family>AR PL SungtiL GB</family>
> <family>AR PL Mingti2L Big5</family>
> <family>锛?汲 鏄庢湞</family>
> <family>Baekmuk Batang</family>
> <family>FreeSerif</family>
176,177c285
< <family>Tahoma</family>
< <family>Helvetica</family>
---
> <family>Bitstream Vera Sans</family>
179,180d286
< <family>Nimbus Sans L</family>
< <family>Luxi Sans</family>
181a288,293
> <family>Albany AMT</family>
> <family>Luxi Sans</family>
> <family>Nimbus Sans L</family>
> <family>Helvetica</family>
> <family>Nachlieli</family>
> <family>Kochi Gothic</family>
182a295,303
> <family>SimSun-18030</family>
> <family>AR PL New Sung</family>
> <family>AR PL ShanHeiSun Uni</family>
> <family>AR PL KaitiM GB</family>
> <family>AR PL KaitiM Big5</family>
> <family>锛?汲 銈淬偡銉冦偗</family>
> <family>Baekmuk Dotum</family>
> <family>SimSun</family>
> <family>FreeSans</family>
187a309
> <family>Bitstream Vera Sans Mono</family>
189a312
> <family>Cumberland AMT</family>
192c315,323
< <family>Simsun</family>
---
> <family>Courier</family>
> <family>Miriam Mono</family>
> <family>Kochi Gothic</family>
> <family>NSimSun</family>
> <family>NSimSun-18030</family>
> <family>AR PL New Sung</family>
> <family>AR PL KaitiM GB</family>
> <family>Baekmuk Dotum</family>
> <family>FreeMono</family>
196,220c327
< <match target="font" >
< <test compare="more" name="size" qual="any" >
< <double>8</double>
< </test>
< <test compare="less" name="size" qual="any" >
< <double>15</double>
< </test>
< <edit mode="assign" name="antialias" >
< <bool>false</bool>
< </edit>
<</match>
<
<<match target="font" >
< <test compare="more" name="pixelsize" qual="any" >
< <double>8</double>
< </test>
< <test compare="less" name="pixelsize" qual="any" >
< <double>15</double>
< </test>
< <edit mode="assign" name="antialias" >
< <bool>false</bool>
< </edit>
<</match>
<
< <!--
---
> <!--
223c330
<
---
>
237c344
< <matrix><double>1</double><double>.2</double>
---
> <matrix><double>1</double><double>0.2</double>
242,244d348
< <edit name="autohint" mode="assign">
< <bool>true</bool>
< </edit>
249a354
>
251,252c356
<Add by [email protected]
<Artificial bold for fonts without a bold version.
---
>Synthetic emboldening for fonts that do not have bold face available
254,295d357
< <match target="font">
< <!-- check to see if the pattern requested > "medium" -->
< <test target="pattern" name="weight" compare="more">
< <const>medium</const>
< </test>
< <!-- pretend the font is bold now -->
< <edit name="weight" mode="assign">
< <const>bold</const>
< </edit>
< </match>
<
<
< <match target="font">
< <test target="pattern" name="lang" compare="contains">
< <string>zh-tw</string>
< <string>zh-cn</string>
< <string>ja</string>
< <string>ko</string>
< </test>
< <test name="spacing" compare="eq">
< <const>mono</const>
< </test>
< <edit name="globaladvance" mode="assign">
< <bool>false</bool>
< </edit>
< </match>
<
< <match target="font">
< <!-- check to see if the pattern requested > "medium" -->
< <test name="antialias" compare="eq">
< <const>true</const>
< </test>
< <test target="pattern" name="lang" compare="contains">
< <string>zh-tw</string>
< <string>zh-cn</string>
< <string>ja</string>
< <string>ko</string>
< </test>
< <edit name="autohint" mode="assign">
< <const>true</const>
< </edit>
< </match>
297c359,375
< <config>
---
> <match target="font">
> <!-- check to see if the font is just regular -->
> <test name="weight" compare="less_eq">
> <int>100</int>
> </test>
> <!-- check to see if the pattern requests bold -->
> <test target="pattern" name="weight" compare="more_eq">
> <int>180</int>
> </test>
> <!-- set the embolden flag -->
> <edit name="embolden" mode="assign">
> <bool>true</bool>
> </edit>
> </match>
>
>
> <config>
305,307c383,392
< <int>0x00a0</int> <!-- NO-BREAK SPACE -->
< <int>0x00ad</int> <!-- SOFT HYPHEN -->
< <int>0x115f</int> <!-- HANGUL CHOSEONG FILLER -->
---
> <int>0x00A0</int> <!-- NO-BREAK SPACE -->
> <int>0x00AD</int> <!-- SOFT HYPHEN -->
> <int>0x034F</int> <!-- COMBINING GRAPHEME JOINER -->
> <int>0x0600</int> <!-- ARABIC NUMBER SIGN -->
> <int>0x0601</int> <!-- ARABIC SIGN SANAH -->
> <int>0x0602</int> <!-- ARABIC FOOTNOTE MARKER -->
> <int>0x0603</int> <!-- ARABIC SIGN SAFHA -->
> <int>0x06DD</int> <!-- ARABIC END OF AYAH -->
> <int>0x070F</int> <!-- SYRIAC ABBREVIATION MARK -->
> <int>0x115F</int> <!-- HANGUL CHOSEONG FILLER -->
309a395,397
> <int>0x17B4</int> <!-- KHMER VOWEL INHERENT AQ -->
> <int>0x17B5</int> <!-- KHMER VOWEL INHERENT AA -->
> <int>0x180E</int> <!-- MONGOLIAN VOWEL SEPARATOR -->
320,325c408,413
< <int>0x200a</int> <!-- HAIR SPACE -->
< <int>0x200b</int> <!-- ZERO WIDTH SPACE -->
< <int>0x200c</int> <!-- ZERO WIDTH NON-JOINER -->
< <int>0x200d</int> <!-- ZERO WIDTH JOINER -->
< <int>0x200e</int> <!-- LEFT-TO-RIGHT MARK -->
< <int>0x200f</int> <!-- RIGHT-TO-LEFT MARK -->
---
> <int>0x200A</int> <!-- HAIR SPACE -->
> <int>0x200B</int> <!-- ZERO WIDTH SPACE -->
> <int>0x200C</int> <!-- ZERO WIDTH NON-JOINER -->
> <int>0x200D</int> <!-- ZERO WIDTH JOINER -->
> <int>0x200E</int> <!-- LEFT-TO-RIGHT MARK -->
> <int>0x200F</int> <!-- RIGHT-TO-LEFT MARK -->
328,334c416,422
< <int>0x202a</int> <!-- LEFT-TO-RIGHT EMBEDDING -->
< <int>0x202b</int> <!-- RIGHT-TO-LEFT EMBEDDING -->
< <int>0x202c</int> <!-- POP DIRECTIONAL FORMATTING -->
< <int>0x202d</int> <!-- LEFT-TO-RIGHT OVERRIDE -->
< <int>0x202e</int> <!-- RIGHT-TO-LEFT OVERRIDE -->
< <int>0x202f</int> <!-- NARROW NO-BREAK SPACE -->
< <int>0x205f</int> <!-- MEDIUM MATHEMATICAL SPACE -->
---
> <int>0x202A</int> <!-- LEFT-TO-RIGHT EMBEDDING -->
> <int>0x202B</int> <!-- RIGHT-TO-LEFT EMBEDDING -->
> <int>0x202C</int> <!-- POP DIRECTIONAL FORMATTING -->
> <int>0x202D</int> <!-- LEFT-TO-RIGHT OVERRIDE -->
> <int>0x202E</int> <!-- RIGHT-TO-LEFT OVERRIDE -->
> <int>0x202F</int> <!-- NARROW NO-BREAK SPACE -->
> <int>0x205F</int> <!-- MEDIUM MATHEMATICAL SPACE -->
347,351c435,439
< <int>0xfeff</int> <!-- ZERO WIDTH NO-BREAK SPACE -->
< <int>0xffa0</int> <!-- HALFWIDTH HANGUL FILLER -->
< <int>0xfff9</int> <!-- INTERLINEAR ANNOTATION ANCHOR -->
< <int>0xfffa</int> <!-- INTERLINEAR ANNOTATION SEPARATOR -->
< <int>0xfffa</int> <!-- INTERLINEAR ANNOTATION TERMINATOR -->
---
> <int>0xFEFF</int> <!-- ZERO WIDTH NO-BREAK SPACE -->
> <int>0xFFA0</int> <!-- HALFWIDTH HANGUL FILLER -->
> <int>0xFFF9</int> <!-- INTERLINEAR ANNOTATION ANCHOR -->
> <int>0xFFFA</int> <!-- INTERLINEAR ANNOTATION SEPARATOR -->
> <int>0xFFFB</int> <!-- INTERLINEAR ANNOTATION TERMINATOR -->
$ 1.2版本的fonts文件,etc.fonts.tbz
由于不能上传.tbz文件,需要把附件.jpg改为.tbz来解压。 看来只有family那一部分可能有问题了。
其他的应该没有问题。 多谢啊,我因为这个问题差点把电脑砸了,研究一上午加半个下午了.
页:
[1]
2