Linux openoffice安装方法

解压缩:

    tar  -zxvf OOo_3.3.0_Linux_x86-64_install-rpm-wJRE_zh-CN.tar.gz

安装方法有两种:

1):进入到 OOO330_m20_native_packed-1_zh-CN.9567目录下,点击setup 进行安装就ok

2):进入到 OOO330_m20_native_packed-1_zh-CN.9567的RPMS中

安装所有 OpenOffice 组件

   rpm -ivh  o*.rpm

 

安装 OpenOffice 桌面控制台 desktop-integration

 

进入到desktop-integration中

    rpm -ivh  openoffice.org3.3-redhat-menus-3.3-9556.noarch.rpm

 

后台服务方式启动openoffice

/opt/openoffice.org3/program/soffice-headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard&

 

检查是否安装成功

查看8100端口是否被监听

netstat-aon|findstr "8100" (winds)    netstat–an|grep 8100(linux)

linux 下openoffice文件转换中文乱码问题

xpdf-chinese-simplified

安装到目录 /usr/local

拷贝XP下fonts目录下的文件编码,放置安装目录位于/usr/share/fonts/下的winxp下,

同时也拷贝到拷贝到/usr/java/jdk1.6.0_29/jre/lib/fonts/fallback目录下

 

首先得让系统找到你安装的新字体,为此,在上面的两个目录内依次执行以下命令

# mkfontscale

# mkfontdir

然后刷新系统的缓存:

# fc-cache -f –v

 

接下来就需要配置local.conf文件了。(注:这个文件位于/etc/fonts/目录下,默认没有这个文件)下面就是local.conf配置文件里的内容(或者直接从安装文件中拷贝local.conf)

 

<?xml version="1.0"?>

<!DOCTYPE fontconfig SYSTEM"fonts.dtd">

<!-- /etc/fonts/local.conf file toconfigure local fonts -->

<fontconfig>

 

<!--

  fonts alias settings

    2字体别名设置

-->

<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>

<!--

    3、字体组与字体名设置

  Mark common families with their generics so we'll get

  something reasonable

-->

<!--

   Sans-serif faces

  -->

<alias>

<family>Arial</family>

<family>Verdana</family>

<family>Trebuchet MS</family>

<family>Comic Sans MS</family>

<family>SimSun</family>

<family>PMingLiU</family>

<family>Arial UnicodeMS</family>

<default><family>sans-serif</family></default>

</alias>

<!--

   Serif faces

  -->

<alias>

<family>Times NewRoman</family>

<family>Georgia</family>

<family>SimSun</family>

<family>PMingLiU</family>

<default><family>serif</family></default>

</alias>

<!--

   Monospace faces

  -->

<alias>

<family>Courier New</family>

<family>Andale Mono</family>

<family>NSimSun</family>

<family>MingLiU</family>

<default><family>monospace</family></default>

</alias>

<!--

  Provide required aliases for standard names

    4、字体匹配顺序,重要的内容在这里设置

-->

<alias>

<family>sans-serif</family>

<prefer>

<family>Arial</family>

<family>Verdana</family>

<family>Trebuchet MS</family>

<family>Comic Sans MS</family>

<family>SimSun</family>

<family>PMingLiU</family>

<family>Arial UnicodeMS</family>

</prefer>

</alias>

<alias>

<family>serif</family>

<prefer>

<family>Times NewRoman</family>

<family>Georgia</family>

<family>SimSun</family>

<family>PMingLiU</family>

</prefer>

</alias>

<alias>

<family>monospace</family>

<prefer>

<family>Courier New</family>

<family>Andale Mono</family>

<family>NSimSun</family>

<family>MingLiU</family>

</prefer>

</alias>

<!--

  SimSun english portion substitutionsubstitution

   5.SimSun英文部分替换动作

-->

<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

   6.同上,替换NSimSun的英文部分

-->

<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

   7.Courier字体的替换

-->

<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

   8.Tahoma/Verdana粗体替换

-->

<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

   9.设置字体显示的DPI

-->

<match target="pattern" >

<edit name="dpi"mode="assign" >

<double>96</double>

</edit>

</match>

<!--

  Enable sub-pixel rendering.

   Ifyou are using CRT, set rgb -> none

   10.子像素渲染

-->

<match target="font">

<edit name="rgba"mode="assign">

<const>none</const>

</edit>

</match>

 

<!--

  Font size settings:

  set the apposite font size,so it's easy to be read

   11.最小字体号设置

-->

<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>

<!--

  Artificial oblique for fonts without an italic or oblique version

   12.支持伪粗体

-->

<match target="font">

<!-- check to see if the font is roman-->

<test name="slant">

<const>roman</const>

</test>

<!-- check to see if the patternrequested non-roman -->

<test target="pattern"name="slant" compare="not_eq">

<const>roman</const>

</test>

<!-- multiply the matrix to slant thefont -->

<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

   13.支持伪粗体

-->

<match target="font">

<!-- check to see if the font is justregular -->

<test name="weight"compare="less_eq">

<int>100</int>

</test>

<!-- check to see if the patternrequests 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

   wewill use autohint = false / hinting = true for MS core fonts

   14.默认AA,Auto,Hinting设置

-->

<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.

   Asa brute force workaround, also set spacing=proportional, i.e. handle

  them as proportional fonts:

    15.解决中英文间距过宽的问题

-->

<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

   16.CJK字体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>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.

   17.CJK字体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

   18.CJK斜体字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

   19.MS字体AA设置

-->

<!--

  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>

 

<!--

  Microsoft YaHei Enable AA

   20.MS YAHEI 字体AA设置

-->

<match target="font" >

<test name="family"compare="eq" >

<string>MicrosoftYaHei</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.

   21.Courier New 字体AA设置

-->

<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

   22.Courier New 字体大小设置

-->

<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>

</fontconfig>

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值