I found the problem, I added all other Microsoft fonts, that is why serif take Times-Roman. After I removed all others and added only the Chinese fonts, it worked. Thanks! LW
On Tue, Feb 28, 2017 at 1:16 AM, Hussein Shafie <huss...@xmlmind.com> wrote: > On 02/28/2017 08:11 AM, Lei Wang wrote: > >> Thanks for response, yes, I had a all *Chinese* chars*replaced by "#"*. >> > > OK. > > > > I have tried the link you provided to customize my Chinese fonts, the >> exact link is here: >> http://www.xmlmind.com/xmleditor/_distrib/doc/help/addonOpti >> ons.html#xepOptions >> > > No, the link is: "7.12.1. Apache FOP options", > http://www.xmlmind.com/xmleditor/_distrib/doc/help/addonOpti > ons.html#fopOptions > > You are using Apache FOP, not RenderX XEP. > > > > >> I have added *a couple of Chinese* fonts *TTF* file,none is working, for >> example, here is my setup Screen shot: >> >> Inline image 1 >> >> I still got the errors like: >> >> xmleditext.dita.*PreProcess.process*" with arguments "-v info -toc >> -images images/*. {pdf,mml,svg,png,jpg,jpeg,gif} -out__doc.pdf -media >> print -options *dita.toPS.options"* >> >> .................. >> >> Converting XSL-FO file "__doc.fo <http://doc.fo>" to "__doc.pdf" using >> FOP >> >> [FOP WARNING] Glyph "本" (0x672c) *not available* in font "*Times-Roman*". >> >> or >> [FOP WARNING] Glyph "本" (0x672c) *not available in* font >> "*TimesNewRomanPSMT*" >> > > These errors are normal. Glyph 0x672c is indeed not available in font > "Times Roman". That's why you must *not* use "Times Roman". > > By default, the generic "serif" family us mapped to "Times Roman". You > must map "serif" to "DengXian Light". > > > > > >> I have done some research >> on XMLmind_DITA_Editor/addon/config/dita/xsl/fo/*fo.xsl* >> and .\bin\jre\lib\*psfont.properties.ja* and *psfontj2d.properties.* >> Looks like the change I made were *not reflected i*n them and no info >> about *Chinese fonts*. >> > > Not applicable. Please undo all your changes in psfont.properties.ja* and > psfontj2d.properties. These *system* Java property files are considered > when you use "File|Print", not "Convert Document". > > > > > > I also checked addon\config\dita\xslMenu.incl, >> <parameterGroup name="dita.toPS.FOPParameters" /> on *line 879 >> *and* *dita.toPS.options as options looks correct *on line 853* >> >> There is a bug renderx #22766, maybe this is another *bug*? >> > > Not applicable. You are not using RenderX XEP. You are using Apache FOP. > > > > > I am a newbie for this. Please help on this or hint >> > > No, there is no bug here. We have many CJK customers who have no problems > with "7.12.1. Apache FOP options", http://www.xmlmind.com/xmledit > or/_distrib/doc/help/addonOptions.html#fopOptions. > > You simply did not map your Chinese fonts to the *generic* *font* > *families*: serif, sans-serif, monospace. > > Please remove all the fonts you've added in the FOP preference dialog, > restart XMLmind then restart from scratch as follows. > > 1) Add TTF file (eg. Dengl.ttf) > > 2) In the "Aliases" frame, give it serif, serif italic, sans-serif, > sans-serif italic aliases. See attached screenshot first_font_mapping.png. > > 3) Add another TTF file. > > 4) In the "Aliases" frame, give it serif bold, serif bold italic, > sans-serif bold, sans-serif bold italic aliases. See attached screenshot > second_font_mapping.png. > > 5) Add yet another TTF file. > > 6) In the "Aliases" frame, give it monospace, monospace bold, monospace > italic, monospace bold italic aliases. See attached screenshot > third_font_mapping.png. > > 7) Click OK twice to close the dialog boxes and restart XMLmind. > > These settings are done once for all. > > I used different fonts than you but it works fine. See attached topic.dita > and topic.pdf. > > > > > > -- Lei Wang Ph.D MSFT wlwalli...@gmail.com, cell: 631 748 8690
-- XMLmind XML Editor Support List xmleditor-support@xmlmind.com http://www.xmlmind.com/mailman/listinfo/xmleditor-support