C:/Windows/fonts/simsun.ttc linux,0在linux如何配置呢 注意是,0

win8.1有问题的快来【windows8吧】_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:401,219贴子:
win8.1有问题的快来收藏
随着Windows 8.1预览版的发布,微软微软Win8.1预览版常见问题也出现了。今天为吧友们解决win8.1的问题。有什么问题都提出来。
专业的PayPal外贸门户,免费注册,让您坐等海外商机,外贸生意更安全便捷;每4笔跨境买卖中,就有3笔选择PayPal,75%的跨国商家选择PayPal为收付款方式!
一、 什么是Windows 8.1 Preview? Windows 8.1 Preview和Windows RT 8.1 Preview是Windows 8.1的预发行版本。它们是在Windows 8基础上构建的,为你的工作、娱乐以及你想在电脑上做的所有其他事情提供了更多方法。Windows 8.1 Preview和Windows RT 8.1 Preview在个性化、搜索、应用程序、Windows应用商店和云连接方面提供了增强功能,并且拥有你期望Windows提供的安全性和可靠性功能。它们速度更快,并且适合各种规格的设备,特别是新一代的触控设备。
二、任何用户都能试用Windows 8.1 Preview吗? 强烈建议仅熟练的电脑用户下载Windows 8.1 Preview或Windows RT 8.1 Preview。下载此预览版本之前,你应该权衡安装仍在开发中的软件的利弊。如果安装此预览版本,你可以试用许多新功能,但也会遇到使用Windows的已发布版本不会遇到的错误。仅当你满足所有以下条件时,才应考虑下载此预览版本: · 喜欢使用最新软件,乐于体验新技术。 · 你不介意备份电脑、格式化硬盘驱动器以及从头开始安装操作系统。 · 你认为自己能够轻松解决电脑问题。 · 不介意频繁更新软件。 · 你拥有或可以创建安装或恢复媒体,并拥有在完成Windows 8.1 Preview测试后恢复到以前的操作系统的知识。 警告 • 如果你运行的是Windows RT,则你在安装Windows RT 8.1 Preview后将无法还原Windows RT。你将可以升级到Windows RT 8.1的最终版本。
三、安装Windows 8.1 Preview是否存在风险? 是的。Windows 8.1 Preview和Windows RT 8.1 Preview运行稳定并且经过彻底测试,但仍不是最终产品。你的电脑可能会死机,并可能会丢失重要文件。你应对数据进行备份,并不得在主要的家用或商业电脑上测试此预览版本。你还可能会遇到以下问题: • 无法安装或无法正常运行软件,包括防病毒程序或安全程序。 • 打印机、视频卡或其他硬件无法工作。 • 访问公司或家庭网络遇到困难。 • 损坏了你的某些文件。在安装之前,你应仔细权衡试用此预览版本的利弊。
四、Windows 8.1 Preview的系统要求是什么? Windows 8.1 Preview能够在可以运行Windows 8的硬件上出色运行: • 处理器:1 GHz或更快 • 内存:1 GB(32位)或2 GB(64位) • 可用硬盘空间:16 GB(32位)或20 GB(64位) • 图形卡:带有WDDM驱动程序的MicrosoftDirectX 9图形设备 Windows RT 8.1 Preview要求你有一台运行着Windows RT且拥有10 GB可用存储空间的电脑。 警告 • 为了使用Windows 8.1 Preview,你必须使用Microsoft帐户登录到你的电脑。创建本地帐户的选项将在Windows 8.1的最终发布版本中可用。 若要使用某些特定功能,还需要满足以下附加要求: • 对于Windows 8.1 Preview的64位安装,你的CPU还必须支持CMPXCHG16b、PrefetchW和LAHF/SAHF。 • 若要使用触控,你需要支持多点触控的平板或显示器。 • 若要访问Windows应用商店并下载和运行应用,你需要有效的Internet连接、至少1024 x 768的屏幕分辨率以及Microsoft帐户。 • Internet接入(可能产生ISP费用)。 Windows将在你更新之前检查你的系统是否符合要求,以确保你的系统能够支持Windows 8.1 Preview。
五、此预览版本采用什么语言? Windows 8.1 Preview支持阿拉伯语、英语(美国)、简体中文、繁体中文、法语、德语、日语、韩语、葡萄牙语(巴西)、俄语、西班牙语、瑞典语和土耳其语。注意: • 如果你安装的Windows 8.1 Preview语言版本不同于电脑当前使用的语言,则你只能保留文件,而不能保留应用和设置。 • 如果你运行的是Windows 8,并且安装了语言包或语言界面包(LIP),则在你安装Windows 8.1 Preview时它们将会被删除。
六、我的设备和程序能否与Windows 8.1 Preview兼容?
能够与Windows 8和Windows RT一起使用的设备和程序,也应该能够与Windows 8.1 Preview和Windows RT 8.1 Preview一起使用。某些情况下,设备或程序可能不工作或可能需要更新,或者你需要卸载某些程序,然后在安装Windows 8.1 Preview后重新安装这些程序。对于每个新的发行版本,Microsoft都致力于提供与所有应用和设备的高度兼容。Microsoft定期检查成千上万的应用和设备,并收集客户反馈,以帮助确定和解决兼容性问题。但是,有几类产品,如安全性和系统实用程序,通常在Windows版本之间不兼容,因为它们依赖于Windows的内部部分。Microsoft与这些设备和应用的制造商密切合作,来帮助他们在Windows发行时让工作版本就绪。基本设备功能的驱动程序是“内置”的(即,作为Windows映像的一部分)。这包括存储、网络、输入和显示的驱动程序。这些驱动程序能让你完成Windows安装和连接到Internet。当你联机时,可以从Windows Update中或从设备制造商那里获取更多驱动程序。如果你现在的Windows 8 Pro带有Media Center,则当你通过Windows应用商店下载预览版本时,可以保留Windows Media Center而无须重新安装。如果你使用ISO文件安装预览版本,Windows Media将被删除,你将需要使用Windows 8 Pro包或Windows 8 Media Center Pack产品密钥重新安装Windows Media。
七、如果我安装Windows 8.1 Preview,我能否保留我的文件、设置和应用? 如果你从在下载ISO时创建的可移动介质启动电脑,则在更新时无法保留你的应用、Windows设置或个人文件。此表显示了你在更新时可以保留的内容,具体情况取决于你的电脑上目前运行的Windows版本。
八、如何安装Windows 8.1 Preview? 有两种方法可以安装Windows 8.1 Preview:通过Windows应用商店或通过ISO。如果你运行的Windows 8的版本语言是此预览版本提供的13种语言版本的语言之一,则我们强烈建议你从Windows应用商店下载此预览版本。当你从应用商店安装时,你无法创建安装介质,必须直接从Windows应用商店下载预览版本。如果你运行的是Windows RT,则只有一种更新方式,即通过应用商店。要想了解你可否通过应用商店进行更新,请参阅下载Windows 8.1 Preview。 警告 • 如果你运行的是Windows 8,并且你不使用此预览版本提供的13语言版本的任何一种语言,则需要使用ISO进行安装。 • 如果你运行的是Windows 8 Enterprise,则将需要使用ISO安装此预览版本。如果你运行的是Windows 8,并且你希望使用ISO安装Windows 8.1 Preview,则一定要知道你的Windows 8产品密钥在哪里。当你更新到Windows 8.1的最终版本时,需要使用Windows 8产品密钥以进行激活。要从Windows 8中安装Windows 8.1 Preview,请执行以下步骤: ①下载ISO (.iso)文件。 ②双击ISO文件。 ③双击setup.exe并按照步骤进行操作。如果你运行的是Windows XP、Windows Vista或Windows7,则可以下载ISO映像并使用它创建可引导的DVD或U盘,用于安装Windows 8.1 Preview。注意: • 如果你需要在安装过程中更新固件或驱动程序,则应安装Windows Update中的所有必需更新。 • 如果你需要在安装过程中释放磁盘空间,请考虑将文件复制到U盘或卸载占用大量空间的应用。 • 如果你开始获取Windows 8.1 Preview但决定停止,请确保卸载关联的Windows Update。打开控制面板,搜索查看已安装的更新。查找Microsoft Windows类别,然后卸载KB2849636。
我还是小挽一个吧
1.9亿全球买家网购时选择PayPal付款,PayPal安全收款,轻松销售无国界,第三方支付必备;Paypal与您共同成长,助您提升销量,提供超越支付的全方位服务,免费注册通道
九、我是否需要产品密钥才能安装Windows 8.1 Preview? 如果你通过Windows应用商店安装Windows 8.1 Preview,则不需要产品密钥。如果你下载ISO,则需要输入此产品密钥:NTTX3-RV7VB-T7X7F-WQYYY-9Y92F。
十、是否可以卸载Windows 8.1 Preview? 不支持卸载此预览版本。但是,可以将你的整个系统恢复到出厂状态。如果你的电脑附带Windows 8,则可以使用电脑刷新将它恢复到Windows 8。你的个人文件不会受到影响,但是,非电脑附带的应用程序将需要重新安装,而且Windows 8应用商店可能不再提供你在使用预览版本时安装的应用程序。要了解有关使用电脑刷新的更多信息,请参阅恢复、刷新或重置电脑。如果你运行的是Windows XP、Windows Vista或Windows 7,则无法卸载此预览版本。若要恢复使用以前操作系统,你需要从电脑随附的恢复或安装媒体(通常是DVD媒体)重新进行安装。如果你没有恢复媒体,则可以在更新之前使用电脑制造商提供的软件通过电脑的恢复分区来创建恢复媒体。请查看电脑制造商网站的支持部分,以了解详细信息。安装Windows 8.1 Preview后,你将无法通过使用电脑上的恢复分区恢复使用以前的Windows版本。 警告: • 如果你当前使用的是Windows RT,你将无法卸载Windows RT 8.1 Preview。当最终版本推出时,你将可以升级为Windows RT 8.1的最终版本。如果你运行的是Windows 8,而且你是使用ISO安装的此预览版本,则将无法卸载它。你需要使用电脑附带的恢复或安装介质重新安装Windows 8。如果你没有恢复介质,则可以创建一个USB恢复驱动器。
我用电信的网卡连不上网
win8.1主要有四种安装方法:1.windows store升级安装2.iso全新安装 3.在如VM等虚拟机软件上安装 4.运用VHD技术部署。
CPU占用率总是过高,导致CPU温度直奔105°C,直接自动关机如果有鲁大师还好,可以开启降温,但是鲁大师不能在Windows 8.1上使用...现在想哭,只能用Win8---回复此楼有惊喜,一般人我不告诉他。
企业版什么时候出啊
请问win8专业版推送 不了
啥问题 怎么解决
安装到最后应用设置的时候蓝屏,然后回转到安装前状态了!!!
不明原因store 和硬盘镜像安装都是如此!
win8.1肿么用微软拼音打出特殊符号☆☆呢??win8下还可以右键点状态栏的 中 选择软键盘。8.1取消了
想玩LOL怎么破?
解决Win8.1预览版的英文和数字有锯齿问题从windows 8 升级到windows 8.1之后,发现在浏览网页、软件界面、输入法下的宋体英文和数字有锯齿问题,这么大面积的影响,我想应该就是宋体字体的问题了。 打开目录C:\Windows\Fonts,找到“宋体 常规”。双击“宋体 常规”发现红色框里面的字体有锯齿,原因就出在这里。而win8自带的宋体是没有这个问题,解决方法就是用windows 8 的宋体字体替换windows 8.1的宋体字体。字体可从windows 8系统里复制。 打开下载好的simsun.ttc,点击左上角的“安装”按钮,若出现提示已存在,是否替换的对话框,选择是。打开运行对话框(快捷键win+R),然后输入cmd打开命令提示符,输入命令“dir c:\windows\fonts\simsun*”,然后回车,我们看到多出了一个“simsun_0.ttc”,这个就是新安装的宋体字体。接下来就是通过修改注册表,使系统使用替换后的宋体字体。打开注册表编辑器(打开运行窗口,输入“regedit”,然后回车),在窗口找到路径“HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts”,右侧拉到最底部,找到名称“宋体 & 新宋体 (TrueType)”,它的数据为“simsun_0.ttc”,一般情况,这个值和上一步查到的文件名一样,鼠标上滚,找到名称“SimSun & NSimSun (TrueType)”,其值为“simsun.ttc”。然后双击“SimSun & NSimSun (TrueType)”的值,把“simsun.ttc”改成“simsun_0.ttc”,点击确定。操作完毕,关掉注册表编辑器,然后注销当前用户,再登录。此时锯齿的问题就解决了。
自带输入法 好多BUG
修复Win8.1预览版右键“固定到开始屏幕”菜单项如果你的win8.1不幸出现了此问题可以这样做修复方法:将下面的代码行复制到记事本中,另存为PintoStartScreen.reg,双击导入:注:如果提示“没有相应的权限”,忽略即可。注2:该方法对快捷方式无效,这可能是Win8.1预览版的一个Bug。目前还没找到解决方法。Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\exefile\shellex\ContextMenuHandlers\PintoStartScreen]@ = “{470C0EBD-5D73-4d58-9CED-E91E22E23282}” [HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\PintoStartScreen]@ = “{470C0EBD-5D73-4d58-9CED-E91E22E23282}” [HKEY_CLASSES_ROOT\mscfile\shellex\ContextMenuHandlers\PintoStartScreen]@ = “{470C0EBD-5D73-4d58-9CED-E91E22E23282}” [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shellex\ContextMenuHandlers\PintoStartScreen]@ = “{470C0EBD-5D73-4d58-9CED-E91E22E23282}” [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shellex\ContextMenuHandlers\PintoStartScreen]@ = “{470C0EBD-5D73-4d58-9CED-E91E22E23282}” [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\mscfile\shellex\ContextMenuHandlers\PintoStartScreen]@ = “{470C0EBD-5D73-4d58-9CED-E91E22E23282}” [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Windows.pintostartscreen]“InvokeCommandOnSelection” = dword:“MUIVerb” = “@shell32.dll,-51201〃“StaticVerbOnly” = “”“ResolveLinksQueryBehavior” = dword:“Description” = “@shell32.dll,-51202〃“CanonicalName” = “{d9a0b766-e16c-47c6-af87-85e427d2b9f5}”“Icon” = “imageres.dll,-5376〃 [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Windows.pintostartscreen]“InvokeCommandOnSelection” = dword:“MUIVerb” = “@shell32.dll,-51201〃“StaticVerbOnly” = “”“ResolveLinksQueryBehavior” = dword:“Description” = “@shell32.dll,-51202〃“CanonicalName” = “{d9a0b766-e16c-47c6-af87-85e427d2b9f5}”“Icon” = “imageres.dll,-5376〃
关于Win8.1输入法选项及设置问题(包括反应慢)输入法问题默认输入法设置:鼠标放在右下角-设置-更改电脑设置-时间和语言-区域和语言-添加语言添加完后
(区域和语言下)点击你想要的语言中文输入法里点击选项,然后点击添加键盘2切换成默认输入法,win+空格3更改输入法反应慢的问题,即关闭云输入法鼠标放在右下角-设置-更改电脑设置-时间和语言-区域和语言,在中文输入法上点选项拉到最下方,关闭云输入法
IE11无法新建选项卡之解决方案安装win8.1后,发现IE存在问题,只要新建选项卡就会报错,选择"取消"就会关闭选项卡,选择"允许",也会报错并关闭选项卡。IE选项-高级中去除"启用增强保护模式"勾选,确定,关闭并重新打开IE即可恢复。
怎么修改metro壁纸啊
给吧友们一个实用的在 Win8.1 这台电脑中删除视频、图片、文档、下载等文件夹如何在“这台电脑”中删除“文件夹”Windows 8.1 已将“计算机”正式更名为“这台电脑”,当我们双击打开“这台电脑”后,也会很明显得发现另外一些变化:Windows 8.1
默认将视频、图片、文档、下载、音乐、桌面等常用文件夹也显示在其中了。下面介绍如何删除上述文件夹的方法:通过修改系统注册表的方式来实现。修改注册表有风险,请在修改前进行备份!!!通过快捷键 Windows+R 打开运行对话框,输入 regedit 。定位到以下键值HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\展开 NameSpace 按以下对应关系删除相应键值即可:键值
{374DE290-123F-C}
{B4BFCC3A-DB2C-424C-BO29-7FE99A87C641}
{1CF-4ebb-811F-33C572699FDE}
{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}
{ADC-43bf-BE83-3742FED03C9C}
{A8CDFF1C-4878-43be-B5FD-FD0}
将上述键值完全删除后(无需重启,立即生效),修改注册表有风险,请在修改前进行备份!!!删除文件夹 注册表:恢复默认样式注册表:双击reg文件进行注册表的导入。期间弹出错误提示,不要理会,直接确定退出即可,注册表实际上已经导入。
我买电脑的时候装的是win8,更了8.1,发现兼容太烂,怎么将它刷新到win8,求具体步骤,谢谢啊
登录百度帐号您的位置:
→ simsun字体(simsun.ttc simsun.ttf) 微软宋体
simsun字体(simsun.ttc simsun.ttf) 微软宋体simsun字体下载|
网友评分:8
软件大小:5.1M
软件语言:中文
软件类型:国产软件
软件类别:免费软件 / 其他字体
更新时间:
软件等级:
官方网站:
运行环境:WinAll, WinXP
软件厂商:
顶好评:50%
同类相关软件
3.6M/中文/7.43.4M/繁体/8.63.2M/中文/9.01.8M/中文/10.0431KB/中文/10.0
Xp系统一般都自带有这个字体,也就是我们通常所说的。也叫微软宋体,是微软购买的针对中文用户使用的字体。本次下载包含:simsun.ttf和simsun.ttc。如果你的电脑因为其他原因缺少这个字体,可以下载解压后放到 C:\WINDOWS\Fonts 下即可。很多朋友都在网上找这款simsun字体,其实就是宋体,一般系统会自带此字体,如果您不小心将宋体删掉了的话可以下载本款。字体介绍宋体,是在中国宋朝发明的一种汉字印刷字体。笔画有粗细变化,而且一般是横细竖粗,末端有装饰部分(即“字脚”或“衬线”),点、撇、捺、钩等笔画有尖端,属于白体,常用于书籍、杂志、报纸印刷的正文排版。因从明朝传入日本,而又称为明体、明朝体。
猜你喜欢 系统字体
系统字体就是电脑系统自带的字体。安装win7、xp、win10、win8等系统时,都会有自带的字体,不少朋友在寻求这些字体,虽然系统中都有了,但是,一般人不知道系统字体在哪个文件下面。这里,绿色资源网小编为大家整理出
其他版本下载
simsun字体_simsun.ttc simsun.ttf
软件无法下载或下载后无法使用,请点击报错,谢谢!
请描述您所遇到的错误,我们将尽快予以修正,谢谢!
*必填项,请输入内容
本类下载排行
10.01 4.92 7.33 1.14 10.05 5.06 .07 5.08 10.09 4.310 .011 10.012 .013 10.014 3.315
本类精品软件
19KB/中文/7.32.4M/中文/5.0138.8M/中文/7.485.0M/中文/9.059.8M/中文/5.1112.0M/中文/5.5326KB/中文/7.5
装机必备软件
本类集合软件如何更改win7系统中的宋体?_电脑百事网
手机扫描二维码
如何更改win7系统中的宋体?
1& 首先安装需要替换的字体,
推荐XP宋体,字体周正圆滑,
在&提示已安装, 是否希望替换&时选择&是&. 这样会在C:/Windows/Fonts/下生成一个simsun_0.ttc 的字体文件.
2& 运行regedit , 定位到HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/Fonts, 分别将&SimSun & NSimSun (TrueType)& 与 &宋体 & 新宋体 (TrueType)&数值从&simsun.ttc&修改为&simsun_0.ttc&. 以下是示例, 注意红色方框标注的部分.
SimSun & NSimSun (TrueType)
宋体 & 新宋体 (TrueType)
3& 注销后重新登录即可
这个时候发现可以替换simsun.ttc的文件了. 如果觉得修改为simsun_0.ttc觉得别扭, 可以将新字体move为simsun.ttc 文件, 然后将上述操作重复一遍即可.
以管理员身份运行cmd:
cd /windows/fonts
Rem 获取文件所有权
takeown /f simsun.ttc
icacls simsun.ttc /grant everyone:f
Rem 替换原来字体
move simsun_0.ttc simsun.ttc
再次重新注销登录就ok了!&
加载更多内容
关注智能手机、电脑、笔记本、科技资讯, 致力于提供有价值的IT资讯。BaseFont.createFont failed [Archive]
- Pentaho Community Forums
View Full Version :
AnonymousHi,all,
I try to run JFreeReport as a servlet on webLogic server,it works fun,
but it fails in recognizing some fonts,I do not know the reason,can
anyone tell me??the following is the message that is printed on the
BaseFont.createFont failed.
com.lowagie.text.DocumentException: Font 'Arial Unicode MS' with 'Cp1252' is not
recognized.
at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source)
at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source)
at com.jrefinery.report.targets.PDFOutputTarget.setFont(PDFOutputTarget.
at com.jrefinery.report.TextElement.draw(TextElement.java:252)
at com.jrefinery.report.Band.draw(Band.java:331)
at com.jrefinery.report.ReportProcessor.draw(ReportProcessor.java:102)
at com.jrefinery.report.ReportProcessor.draw(ReportProcessor.java:76)
at com.jrefinery.report.ReportProcessor.printGroupHeader(ReportProcessor
.java:173)
at com.jrefinery.report.ReportState$PreGroupHeader.advance(ReportState.j
at com.jrefinery.report.JFreeReport.processPage(JFreeReport.java:676)
at com.jrefinery.report.JFreeReport.processReport(JFreeReport.java:562)
AnonymousHi,
the pdf library needs access to the ttf-files making up the true-type-fonts. In which environment do you run the websphere server? Windows or Unix? If windows, then JFreeReport tries to load the available fonts from %windir%/fonts. If unix it searches the fonts on /usr/X11R6/lib/X11/fonts/truetype.
If you have stored your fonts in other directories, you have to iniitalize the font engine manually by calling:
PDFOutputTarget.getFontFactory().registerFontPath(String)
PDFOutputTarget.getFontFactory().registerFontFile (String filenameOfTTF);
Then everyting should be fine.
Have more fun,
said Thomas
AnonymousHa!
Cp1252 sound like Mac, doesn't it? I can be that a mac is not recognized correctly by JFreeReport. So if you coud send me the contents of the &System.os& system-property and the location of the default font directory containing ttf-files, I could add this to the lib, so that such things won't happen again..
And I saw: WebLogic, not ~shpere ... but the result is the same ...
Have more fun,
said Thomas
AnonymousHi,
I reproduced the bug here. The font you want to use is not available in your system, neither Java nor the iText library have access to this font. Are you sure you have the font installed?
This error is repeatable by changing the font name in any report definition to something stupid, like &%$%
AnonymousHu,Thomas,
Thank you for your replay:)
I studied the tutor document of iText,and find some information.
First,let's see an example of BaseFont.createFont:
BaseFont.createFont(&Helvetica&, BaseFont.CP1252, BaseFont.NOT_EMBEDDED);
The second parameter is the encoding.Cp1252,latin 1 extended with 27 the encoding is also known as 'winansi'.
I am in China and use simple Chinese.I find the information
like this:
You can also add text in some predefined Chinese/Korean/Japanese fonts (using UNICODE):
BaseFont bfChinese = BaseFont.createFont(&STSong-Light&, &UniGB-UCS2-H&, BaseFont.NOT_EMBEDDED);
Font FontChinese = new Font(bfChinese, 12, Font.NORMAL);
Chunk chunk = new Chunk(&\u6e96\u53d7\u4fdd\u4eba&, FontChinese);
document.add(chunk);
This piece of code is used in example 9 and you can take a look a the result here.
You can create PDF-documents with the following fonts:
Chinese Simplified
STSong-Light with the encodings UniGB-UCS2-H and UniGB-UCS2-V
Does that mean i can only use font STSong-Light
the encodings UniGB-UCS2-H and UniGB-UCS2-V in simple Chinese??
thanks again:)
AnonymousHi,
From the examples documentation:
Important:
Remember that you can't embed these fonts in the PDF file using iText. Before trying to view a pdf with these Asian characters, you must download the Asian font pack from Adobe at: http://www.adobe.com/products/acrobat/acrrasianfontpack.html. or use a localized Windows. An alternative for this kind of fonts, is using a True Type Asian Font or Collection such as msgothic.ttc with the encoding BaseFont.IDENTITY_H or BaseFont.IDENTITY_V. You can use them exactly the same way as we did in the section about True Type Fonts and there will be no need to use the Asian font pack from Adobe because a subset of the font will be embedded in the document.
Anyway, you are not tied to that fonts. Any unicode font will do the job. I altered report3.xml to show you a better way ... and the beast crashed when saving the pdf :(
I had to fix the handling of the standard-fonts Serif, SansSerif and Monospace, which get mapped into the PDF-Standardfonts Helvetica, Times-Roman and Courier. These standardfonts do not accept the IDENTITY_H or IDENTITY_V encoding, they want an &iso-8859-x& string instead. I added a special handling for those fonts to the OutputTargets.
Additionally the LineBreak-methods were broken, but thats another issue ... I love this day :)
If you have the truetype font &Arial Unicode MS& installed on your maschine, you should be able to run and save report3.xml without any problems. I added the Unicode sequence from Example 9 to the reports group footer, in the group header you'll find another sequence of characters (Korean, if I remember right, I found them on Unicode.org a long time ago).
If you use JFreeReport in your programms, make sure that the fonts are registered properly, or they cannot be embedded into the pdf and will result in this evil &DocumentException&.
To register the fonts, you'll have to insert the line
PDFOutputTarget.getFontFactory ().registerDefaultFontPath ();
into your code, or you have to set the system property &com.jrefinery.report.targets.PDFOutputTarget.AUTOINIT& to true.
JFreeReport searches your Systems known font locations for *.ttf files and adds their names to the internal repository of fonts. This data is later used to transparently map between the logical fontnames (f.i. &Arial Unicode MS& and the real font filename (in this case it is most likely &arialuni.ttf&).
The fonts &STSong-Light& and the other fonts mentioned seem to be special fonts (like Helvetica is for the western fonts), but Java does not know them, so they are limited to PDF only and not currently supported. (Reason: There seems to be no way to display those fonts in the Preview or in other OutputTargets).
(Warning: You won't see a missing font in the Preview, as Java-AWT seems to ignore buggy font specifications or handles them without throwing an exception.)
Have more fun,
said Thomas
AnonymousHi,Thomas,
I cannt open the page http://sourceforge.net/projects/jfreereport,
and cannt download the package.Could you send me the new
report3.xml and the source code of the functions that you have
modified?I will try it as you mentioned..
thanks a lot}

我要回帖

更多关于 字体库simsun.ttc 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信