LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1031|回复: 17

请问一下openoffice怎么会变成这样

[复制链接]
发表于 2009-3-31 19:38:28 | 显示全部楼层 |阅读模式
前几天,把系统字体 调整为宋体和thoma字体了
现在打开openoffice就这样了

本帖子中包含更多资源

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

x
发表于 2009-3-31 20:21:03 | 显示全部楼层
网上搜索以下,主要是因为你没有定义字体替换规则或者字体顺序
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-1 09:37:04 | 显示全部楼层
找到一个现在这一 mark以下
http://www.linuxsir.cn/bbs/showthread.php?t=131757
回去试试看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-1 19:07:16 | 显示全部楼层
还是不行
奇怪了
打开的时候中文,闪一下 变成方快乐
如果替换字体,下拉的字体里面的宋体的方框阿
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-1 19:21:46 | 显示全部楼层
是不是这个版本不能识别宋体阿
回复 支持 反对

使用道具 举报

发表于 2009-4-1 21:23:05 | 显示全部楼层
tahoma是一款英文字体而已。
回复 支持 反对

使用道具 举报

发表于 2009-4-1 22:43:05 | 显示全部楼层
http://www.linuxsir.cn/bbs/showthread.php?t=339541


你把这个装上试试看。里面包含了你用到的字体替换的规则了。
回复 支持 反对

使用道具 举报

发表于 2009-4-1 22:58:12 | 显示全部楼层
我也是用宋体和thoma字体.没乱码啊.

楼主试试先把用户目录下的 .openoffice.org 改名了.再运行看看
回复 支持 反对

使用道具 举报

发表于 2009-4-2 00:20:32 | 显示全部楼层
openoffice 不支持 Tahoma

你要先把系统字体改到宋体。然后打开 openoffice 就好了。
接着在 Openoffice  内使用 “替换字体” 将 Tahoma 都映射为 宋体。
然后系统再用Tahoma字体就没事了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-2 19:47:36 | 显示全部楼层
Post by latteye;1968729
openoffice 不支持 Tahoma

你要先把系统字体改到宋体。然后打开 openoffice 就好了。
接着在 Openoffice  内使用 “替换字体” 将 Tahoma 都映射为 宋体。
然后系统再用Tahoma字体就没事了。


宋体是 框框阿
我的local.conf

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/local.conf file to configure local fonts -->
<fontconfig>

<!--
   fonts alias settings
-->
   <match target="pattern">
      <test name="family">
         <string>宋体</string>
      </test>
      <edit name="family" mode="assign">
         <string>SimSun</string>
      </edit>
   </match>
   <match target="pattern">
      <test name="family">
         <string>新宋体</string>
      </test>
      <edit name="family" mode="assign">
         <string>NSimSun</string>
      </edit>
   </match>

<!--
   Mark common families with their generics so we'll get
   something reasonable
-->
<!--
   Sans-serif faces
-->
   <alias>
      <family>Tahoma</family>
      <family>Verdana</family>
      <family>Arial</family>
      <family>Trebuchet MS</family>
      <family>Comic Sans MS</family>
      <family>SimSun</family>
      <family>SimHei</family>
        ...
      <family>STHupo</family>
      <family>STXinwei</family>
      <family>FZYaoTi</family>
      <family>FZShuTi</family>
      <family>Arial Unicode MS</family>
      <default><family>sans-serif</family></default>
   </alias>
<!--
   Serif faces
-->
   <alias>
      <family>Georgia</family>
      <family>Times New Roman</family>
      <family>WenQuanYi Bitmap Song</family>
      <default><family>serif</family></default>
   </alias>
<!--
   Monospace faces
-->
   <alias>
      <family>Courier New</family>
      <family>Andale Mono</family>
      <family>NSimSun</family>
      <default><family>monospace</family></default>
   </alias>

<!--
   Provide required aliases for standard names
-->
   <alias>
      <family>sans-serif</family>
      <prefer>
         <family>Tahoma</family>
         <family>Verdana</family>
         <family>Arial</family>
         <family>Trebuchet MS</family>
         <family>Comic Sans MS</family>
         <family>SimSun</family>
         <family>SimHei</family>
            ...
         <family>STHupo</family>
         <family>STXinwei</family>
         <family>FZYaoTi</family>
         <family>FZShuTi</family>
         <family>Arial Unicode MS</family>
      </prefer>
   </alias>
   <alias>
      <family>serif</family>
      <prefer>
         <family>Georgia</family>
         <family>Times New Roman</family>
         <family>WenQuanYi Bitmap Song</family>
      </prefer>
   </alias>
   <alias>
      <family>monospace</family>
      <prefer>
         <family>Courier New</family>
         <family>Andale Mono</family>
         <family>NSimSun</family>
      </prefer>
   </alias>

<!--
   SimSun english portion substitutionsubstitution
-->
   <match target="pattern">
      <test name="family" >
         <string>SimSun</string>
      </test>
        <edit name="family" mode="prepend" binding="strong">
         <string>Tahoma</string>
      </edit>
   </match>

<!--
   NSimSun english portion substitutionsubstitution
-->
   <match target="pattern">
      <test name="family" >
         <string>NSimSun</string>
      </test>
      <edit name="family" mode="prepend" binding="strong">
         <string>Courier New</string>
      </edit>
   </match>

<!--
   Courier substitution
-->
   <match target="pattern">
      <test name="family" >
         <string>Courier</string>
      </test>
      <edit name="family" mode="prepend" binding="strong">
         <string>Courier New</string>
      </edit>
   </match>

<!--
   Bold Tahoma/Verdana substitution:
   when its size more than 20px,substitution with Bold Arial
-->
   <match target="pattern">
      <test name="family" >
         <string>Tahoma</string>
         <string>Verdana</string>
      </test>
      <test name="weight" compare="more_eq">
         <int>180</int>
      </test>
      <test name="pixelsize" compare="more_eq" >
         <double>20</double>
      </test>
      <edit name="family" mode="prepend" binding="strong">
         <string>Arial</string>
      </edit>
   </match>

<!--
   Target dots per inch, change dpi to 96
-->
   <match target="pattern" >
      <edit name="dpi" mode="assign" >
         <double>89</double>
      </edit>
   </match>





<!--
   Artificial oblique for fonts without an italic or oblique version
-->
   <match target="font">
      <!-- check to see if the font is roman -->
      <test name="slant">
         <const>roman</const>
      </test>
      <!-- check to see if the pattern requested non-roman -->
      <test target="pattern" name="slant" compare="not_eq">
         <const>roman</const>
      </test>
      <!-- multiply the matrix to slant the font -->
      <edit name="matrix" mode="assign">
         <times>
            <name>matrix</name>
            <matrix>
               <double>1</double><double>0.2</double>
               <double>0</double><double>1</double>
            </matrix>
         </times>
      </edit>
      <!-- pretend the font is oblique now -->
      <edit name="slant" mode="assign">
         <const>oblique</const>
      </edit>
   </match>


<!--
   Synthetic emboldening for fonts that do not have bold face available
-->
   <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>




<!--
   Default Fonts setting
   here autohint = ture / hinting = false is for free fonts in your system
   we will use autohint = false / hinting = true for MS core fonts
-->
   <match target="font" >
      <edit name="antialias" mode="assign" >
         <bool>true</bool>
      </edit>
      <edit name="autohint" mode="assign" >
         <bool>true</bool>
      </edit>
      <edit name="hinting" mode="assign" >
         <bool>false</bool>
      </edit>
      <edit name="hintstyle" mode="assign" >
         <const>hintfull</const>
      </edit>
   </match>


<!--
   The dual-width Asian fonts (spacing=dual) are not rendered correctly,
   apparently FreeType forces all widths to match. Trying to disable the
   width forcing code by setting globaladvance=false alone doesn't  help.
   As a brute force workaround, also set spacing=proportional, i.e. handle
   them as proportional fonts:
-->
   <match target="font">
      <test name="lang" compare="contains" >
         <string>zh</string>
         <string>ja</string>
         <string>ko</string>
      </test>
      <edit name="spacing" mode="assign" >
         <const>proportional</const>
      </edit>
      <edit name="globaladvance" mode="assign" >
         <bool>false</bool>
      </edit>
   </match>




<!--
   CJK antialias settings:
   when font size (in pixel) between 8 and 20px
-->
   <match target="font" >
      <test name="lang" compare="contains" >
         <string>zh</string>
         <string>ja</string>
         <string>ko</string>
      </test>
      <test name="pixelsize" compare="more_eq" >
         <double>8</double>
      </test>
      <test name="pixelsize" compare="less_eq" >
         <double>20</double>
      </test>
      <edit name="antialias" mode="assign" >
         <bool>false</bool>
      </edit>
      <edit name="autohint" mode="assign" >
         <bool>false</bool>
      </edit>
      <edit name="hinting" mode="assign" >
         <bool>false</bool>
      </edit>
   </match>

<!--
   CJK antialias settings:
   when font size (in pixel) more than 20px, enable AA.
-->
   <match target="font" >
      <test name="lang" compare="contains" >
         <string>zh</string>
         <string>ja</string>
         <string>ko</string>
      </test>
      <test name="pixelsize" compare="more_eq" >
         <double>20</double>
      </test>
      <edit name="antialias" mode="assign" >
         <bool>true</bool>
      </edit>
      <edit name="autohint" mode="assign" >
         <bool>true</bool>
      </edit>
      <edit name="hinting" mode="assign" >
         <bool>true</bool>
      </edit>
   </match>

<!--
   Italic CJK fonts,enable AA
-->
   <match target="font">
      <test name="lang" compare="contains" >
         <string>zh</string>
         <string>ja</string>
         <string>ko</string>
      </test>
      <test name="slant" compare="not_eq">
         <const>roman</const>
      </test>
      <edit name="antialias" mode="assign" >
         <bool>true</bool>
      </edit>
      <edit name="autohint" mode="assign" >
         <bool>true</bool>
      </edit>
      <edit name="hinting" mode="assign" >
         <bool>true</bool>
      </edit>
   </match>



<!--
   Microsoft fonts settings
-->
<!--
   default : smoothed and hinted
-->
   <match target="font" >
      <test name="foundry" >
         <string>monotype</string>
         <string>microsoft</string>
      </test>
      <edit name="antialias" mode="assign" >
         <bool>true</bool>
      </edit>
      <edit name="autohint" mode="assign" >
         <bool>false</bool>
      </edit>
      <edit name="hinting" mode="assign" >
         <bool>true</bool>
      </edit>
      <edit name="hintstyle" mode="assign" >
         <const>hintfull</const>
      </edit>
   </match>


<!--
   Courier New:
   both enable autohint and hinting looks very well.
-->
   <match target="font" >
      <test name="family" >
         <string>Courier</string>
         <string>Courier New</string>
      </test>
      <edit name="antialias" mode="assign" >
         <bool>true</bool>
      </edit>
      <edit name="autohint" mode="assign" >
         <bool>true</bool>
      </edit>
      <edit name="hinting" mode="assign" >
         <bool>true</bool>
      </edit>
      <edit name="hintstyle" mode="assign" >
         <const>hintfull</const>
      </edit>
   </match>

<!--
   Courier New font size
-->
   <match target="font" >
      <test name="family" >
         <string>Courier New</string>
      </test>
      <test name="pixelsize" compare="less_eq" >
         <double>14.7</double>
      </test>
      <edit name="pixelsize" mode="assign" >
         <double>14.7</double>
      </edit>
   </match>



<!--
   Font size settings:
   set the apposite font size,so it's easy to be read
-->
   <match target="pattern" >
      <test name="pixelsize" compare="more_eq" >
         <double>8</double>
      </test>
      <test name="pixelsize" compare="less_eq" >
         <double>12</double>
      </test>
      <edit name="pixelsize" mode="assign" >
         <double>12</double>
      </edit>
   </match>





<!--
   Enable sub-pixel rendering.
   If you are using CRT, set rgb -> none
-->
   <match target="font">
      <edit name="rgba" mode="assign">
         <const>none</const>
      </edit>
   </match>


</fontconfig>
回复 支持 反对

使用道具 举报

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

本版积分规则

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