LinuxSir.cn,穿越时空的Linuxsir!

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

xpdf的字体问题

[复制链接]
发表于 2003-12-11 13:34:28 | 显示全部楼层 |阅读模式
我的xpdf现在设置好了,可以显示中文。但是字体暴难看,请问有什么办法可以美化吗?如图:

本帖子中包含更多资源

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

x
发表于 2003-12-11 13:53:10 | 显示全部楼层
$ cat /etc/xpdf/xpdfrc-chinese-simplified
#----- begin Chinese Simplified support package (2002-jun-17)
cidToUnicode  Adobe-GB1 /usr/share/xpdf/chinese-simplified/Adobe-GB1.cidToUnicode
unicodeMap  ISO-2022-CN /usr/share/xpdf/chinese-simplified/ISO-2022-CN.unicodeMap
unicodeMap  EUC-CN    /usr/share/xpdf/chinese-simplified/EUC-CN.unicodeMap
unicodeMap  GBK   /usr/share/xpdf/chinese-simplified/GBK.unicodeMap
cMapDir   Adobe-GB1 /usr/share/fonts/cmap/adobe-gb1
toUnicodeDir      /usr/share/fonts/cmap/adobe-gb1
displayCIDFontX        Adobe-GB1       "-*-simsun-medium-r-normal-*-%s-*-*-*-*-*-gbk-0" GBK
#----- end Chinese Simplified support package


或者将红色那一行直接加入~/.xpdfrc
游客  发表于 2003-12-11 20:07:53
为什么都要用PDF啊?
发表于 2003-12-11 22:01:19 | 显示全部楼层
最初由 2100 发表
为什么都要用PDF啊?

Because it's the standard format for publishing.
发表于 2004-2-2 10:23:28 | 显示全部楼层
xpdf 3.00中文又不行了,谁搞定了?把配置共享一下阿
发表于 2004-2-2 10:35:04 | 显示全部楼层
3.0我没搞定,改之后,能看到字体变了,但是显示的还是乱码
 楼主| 发表于 2004-2-2 20:21:08 | 显示全部楼层
3.0 的配置和2.X的差不多,你看

我的.pdfrc

#========================================================================
#
# Sample xpdfrc file
#
# The Xpdf tools look for a config file in two places:
# 1. ~/.xpdfrc
# 2. in a system-wide directory, typically /usr/local/etc/xpdfrc
#
# This sample config file demonstrates some of the more common
# configuration options.  Everything here is commented out.  You
# should edit things (especially the file/directory paths, since
# they'll likely be different on your system), and uncomment whichever
# options you want to use.  For complete details on config file syntax
# and available options, please see the xpdfrc(5) man page.
#
# Also, the Xpdf language support packages each include a set of
# options to be added to the xpdfrc file.
#
# http://www.foolabs.com/xpdf/
#
#========================================================================

#----- display fonts

# These map the Base-14 fonts to standard X server fonts.
# These are default mappings, built into xpdf - they're shown here
# purely as examples.

displayFontX        Courier                        "-*-courier-medium-r-normal-*-%s-*-*-*-*-*-iso8859-1"                Latin1
displayFontX        Courier-Bold                "-*-courier-bold-r-normal-*-%s-*-*-*-*-*-iso8859-1"                Latin1
displayFontX        Courier-BoldOblique        "-*-courier-bold-o-normal-*-%s-*-*-*-*-*-iso8859-1"                Latin1
displayFontX        Courier-Oblique                "-*-courier-medium-o-normal-*-%s-*-*-*-*-*-iso8859-1"                Latin1
displayFontX        Helvetica                "-*-helvetica-medium-r-normal-*-%s-*-*-*-*-*-iso8859-1"                Latin1
displayFontX        Helvetica-Bold                "-*-helvetica-bold-r-normal-*-%s-*-*-*-*-*-iso8859-1"                Latin1
displayFontX        Helvetica-BoldOblique        "-*-helvetica-bold-o-normal-*-%s-*-*-*-*-*-iso8859-1"                Latin1
displayFontX        Helvetica-Oblique        "-*-helvetica-medium-o-normal-*-%s-*-*-*-*-*-iso8859-1"                Latin1
displayFontX        Symbol                        "-*-symbol-medium-r-normal-*-%s-*-*-*-*-*-adobe-fontspecific"        Symbol
displayFontX        Times-Bold                "-*-times-bold-r-normal-*-%s-*-*-*-*-*-iso8859-1"                Latin1
displayFontX        Times-BoldItalic        "-*-times-bold-i-normal-*-%s-*-*-*-*-*-iso8859-1"                Latin1
displayFontX        Times-Italic                "-*-times-medium-i-normal-*-%s-*-*-*-*-*-iso8859-1"                Latin1
displayFontX        Times-Roman                "-*-times-medium-r-normal-*-%s-*-*-*-*-*-iso8859-1"                Latin1
displayFontX        ZapfDingbats                "-*-zapfdingbats-medium-r-normal-*-%s-*-*-*-*-*-*-*"                ZapfDingbats

# These map the Base-14 fonts to the Type 1 fonts that ship with
# ghostscript.  You'll almost certainly want to use something like
# this, but you'll need to adjust this to point to wherever
# ghostscript is installed on your system.

#displayFontT1 Times-Roman                /usr/local/share/ghostscript/fonts/n021003l.pfb
#displayFontT1 Times-Italic                /usr/local/share/ghostscript/fonts/n021023l.pfb
#displayFontT1 Times-Bold                /usr/local/share/ghostscript/fonts/n021004l.pfb
#displayFontT1 Times-BoldItalic                /usr/local/share/ghostscript/fonts/n021024l.pfb
#displayFontT1 Helvetica                /usr/local/share/ghostscript/fonts/n019003l.pfb
#displayFontT1 Helvetica-Oblique        /usr/local/share/ghostscript/fonts/n019023l.pfb
#displayFontT1 Helvetica-Bold                /usr/local/share/ghostscript/fonts/n019004l.pfb
#displayFontT1 Helvetica-BoldOblique        /usr/local/share/ghostscript/fonts/n019024l.pfb
#displayFontT1 Courier                        /usr/local/share/ghostscript/fonts/n022003l.pfb
#displayFontT1 Courier-Oblique                /usr/local/share/ghostscript/fonts/n022023l.pfb
#displayFontT1 Courier-Bold                /usr/local/share/ghostscript/fonts/n022004l.pfb
#displayFontT1 Courier-BoldOblique        /usr/local/share/ghostscript/fonts/n022024l.pfb
#displayFontT1 Symbol                        /usr/local/share/ghostscript/fonts/s050000l.pfb
#displayFontT1 ZapfDingbats                /usr/local/share/ghostscript/fonts/d050000l.pfb

# If you need to display PDF files that refer to non-embedded fonts,
# you should add one or more fontDir options to point to the
# directories containing the font files.  Xpdf will only look at .pfa,
# .pfb, and .ttf files in those directories (other files will simply
# be ignored).

#fontDir                /usr/local/fonts/bakoma

#----- PostScript output control

# Set the default PostScript file or command.

#psFile                        "|lpr -Pmyprinter"

# Set the default PostScript paper size -- this can be letter, legal,
# A4, or A3.  You can also specify a paper size as width and height
# (in points).

#psPaperSize                letter

#----- text output control

# Choose a text encoding for copy-and-paste and for pdftotext output.
# The Latin1, ASCII7, and UTF-8 encodings are built into Xpdf.  Other
# encodings are available in the language support packages.

#textEncoding                UTF-8

# Choose the end-of-line convention for multi-line copy-and-past and
# for pdftotext output.  The available options are unix, mac, and dos.

#textEOL                unix

#----- misc settings

# Set the anti-aliasing mode for t1lib and FreeType.  These can be low
# or high (anti-aliasing), plain (no anti-aliasing), or none (disable
# the rasterizer entirely).

#t1libControl                low
#freetypeControl        low

# Set the command used to run a web browser when a URL hyperlink is
# clicked.

#urlCommand        "netscape -remote 'openURL(%s)'"

#----- begin Chinese Simplified support package (2002-jun-17)
cidToUnicode        Adobe-GB1        /usr/chinese-simplified/Adobe-GB1.cidToUnicode
unicodeMap        ISO-2022-CN        /usr/chinese-simplified/ISO-2022-CN.unicodeMap
unicodeMap        EUC-CN                /usr/chinese-simplified/EUC-CN.unicodeMap
unicodeMap        GBK                /usr/chinese-simplified/GBK.unicodeMap
cMapDir                Adobe-GB1        /usr/chinese-simplified/CMap
toUnicodeDir                        /usr/chinese-simplified/CMap
displayCIDFontX        Adobe-GB1        "-kaiyuan-TangTi-medium-r-normal--%s-*-*-*-*-*-gb2312.1980-0" ISO-2022-CN
#----- end Chinese Simplified support package

本帖子中包含更多资源

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

x
发表于 2004-2-2 20:26:01 | 显示全部楼层
还是不对。。
xpdf 3.0好像不支持XLFD字体了。。
我这里

$ xpdf
Error: Unknown config file command 'displayCIDFontX' (/etc/xpdfrc:27)
Error: -- Xpdf no longer supports X fonts
发表于 2004-2-2 22:29:42 | 显示全部楼层
我的直接升级

根本没有改配置

本帖子中包含更多资源

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

x
发表于 2004-2-3 11:43:38 | 显示全部楼层
也是xfce吧?

有些PDF做的不好的,怎么都不行,我现在有点金庸小说,就全是·。没办法。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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