国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 網(wǎng)絡通信 > 正文

Slackware9Ghostscript中文解決方案

2019-11-04 20:23:30
字體:
供稿:網(wǎng)友

  (1) Software requirements:
  
  Install Ghostscript (espgs-7.05.6), font (gnu-gs-fonts) and ghostview (gv) packages
  
  (2) Font requirements:
  
  Install SimSun, SimHei and other Chinese TTF fonts to XFree86 TTF font dir
  
  (3) Hack the ghostscript:
  
  Backup file /usr/share/ghostscript/7.05/lib/CIDFnmap, then modify it as follows:
  
  %(CIDFnmap.Win) .runlibfile
  % Add the following line
  (CIDFnmap.zhcn) .runlibfile
  
  Add file /usr/share/ghostscript/7.05/lib/CIDFnmap.zhcn as follows:
  
  /SimSun   (/usr/X11R6/lib/X11/fonts/TTF/simsun.ttc)      ;
  /STSong-Light      /SimSun       ;
  /Beijing        /SimSun       ;
  %/NSimSun  (/usr/X11R6/lib/X11/fonts/TTF/simsun.ttc)  2    ;
  /Adobe-GB1       /SimSun       ;
  
  /SimHei   (/usr/X11R6/lib/X11/fonts/TTF/simhei.ttf)    ;
  /STHeiti-Regular    /SimHei     ;
  
  /SimFang  (/usr/X11R6/lib/X11/fonts/TTF/simfang.ttf)   ;
  /FangSong        /SimFang      ;
  /STFangsong-Light    /SimFang      ;
  /SimKai   (/usr/X11R6/lib/X11/fonts/TTF/simkai.ttf)    ;
  /KaiTi         /SimKai       ;
  /STKaiti-Regular    /SimKai       ;
  
  /FZFangSong (/usr/X11R6/lib/X11/fonts/TTF/fzfsjw.ttf)    ;
  /FZWeiBei  (/usr/X11R6/lib/X11/fonts/TTF/fzwbjw.ttf)    ;
  /FZKai   (/usr/X11R6/lib/X11/fonts/TTF/fzktjw.ttf)    ;
  /FZShuTi  (/usr/X11R6/lib/X11/fonts/TTF/fzstjw.ttf)    ;
  
  /SIL-FangSong-     /STFangsong-Light  ;
  /SIL-FangSong-Reg-Jian /STFangsong-Light  ;
  /SIL-Hei-Med-Jian    /STHeiti-Regular  ;
  /SIL-Kai-        /STKaiti-Regular  ;
  /SIL-Kai-Reg-Jian    /STKaiti-Regular  ;
  /SIL-Song-Reg-Jian   /STSong-Light    ;
  
  Backup /usr/share/ghostscript/7.05/lib/gs_res.ps, then modify it as follows:
  
  Find the following line
  /GenericResourceDir (/usr/share/ghostscript/) readonly .forcedef
  Replace it with the following line
  /GenericResourceDir (/usr/share/ghostscript/resource/) readonly .forcedef
  
  (4) Add Adobe CMAP for CID fonts to ghostscript
  
  Download ac14.tar.Z and ag14.tar.Z from the following link:
  FTP://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/
  Execute the following commands:
  # cd /usr/share/ghostscript/
  # mkdir resource
  # cd resource
  # mkdir CMap
  # tar -zxvf /tmp/ac14.tar.Z
  # tar -zxvf /tmp/ag14.tar.Z
  
  # cp ac14/CMap/* ag14/CMap/* CMap
  # rm -rf ac14 ag14
  
  Alternatively, if you want the latest Adobe CMAP files, download "Complete set of Adobe CMAP files for CID Fonts" in the "Adobe Font Development Kit for OpenType" from adobe.com:
  
  http://partners.adobe.com/asn/tech/type/otfdk/index.jsp
  
  Execute the following commands:
  # cd /usr/share/ghostscript/
  # mkdir resource
  # cd resource
  # mkdir CMap
  # unzip /tmp/Adobe Cmaps.zip
  # cp Adobe Cmaps/Adobe-CNS1-2/* Adobe Cmaps/Adobe-CNS1-3/*
  Adobe Cmaps/Adobe-CNS1-4/* Adobe Cmaps/Adobe-GB1-3/*
  Adobe Cmaps/Adobe-GB1-4/* Adobe Cmaps/Adobe-Identity-0/*
  CMap
  # rm -rf Adobe Cmaps
  
  (5) Hack Mozilla/Firebird PReference file:
  
  Modify mozilla/default/pref/unix.js as follows:
  
  Look for the following line:
  pref("print.postscript.nativefont.zh-CN", "");
  
  Replace it with the following line:
  pref("print.postscript.nativecode.zh-CN", "gb2312");
  pref("print.postscript.nativefont.zh-CN", "SimSun-GB-EUC-H");


發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 夏津县| 壶关县| 山阳县| 安福县| 边坝县| 三都| 盐城市| 平罗县| 兰考县| 新民市| 常德市| 陆良县| 平塘县| 岚皋县| 合阳县| 平乡县| 加查县| 封丘县| 宝山区| 慈利县| 阳东县| 云林县| 班戈县| 宁波市| 德昌县| 奎屯市| 阳高县| 荥阳市| 梁平县| 阿拉尔市| 图们市| 仁布县| 昭平县| 荥阳市| 将乐县| 睢宁县| 甘泉县| 高雄县| 阳泉市| 高雄县| 古浪县|