Re: About font on PDF

"Kimura, Shinichi" <[email protected]>
Newsgroups gmane.editors.xxe.general
Message-ID <TYAPR01MB49424B333BBB9449ECEF4D9287110@TYAPR01MB4942.jpnprd01.prod.outlook.com>
Hello, 

Thank you for you quick response. 

I can set the Japanese font with (3) shown in 0218-2.png. 
But I can't convert to PDF with error shown in 0218-3.png.
I attached the error log file. (XXEerrlog0218-1.txt)
In line 29, error occurred. 
I don't understand why the processor cannot find the font file.

Do I have to set other settings?

Best regard, 
Kimura


-----Original Message-----
From: Hussein Shafie [mailto:[email protected]] 
Sent: Monday, February 17, 2020 11:01 PM
To: Kimura, Shinichi
Cc: '[email protected]'
Subject: Re: [XXE] About font on PDF

Hello,

On 2/17/20 7:22 AM, Kimura, Shinichi wrote:
> Hello XXE support,
> 
> I'm Kimura, Anritsu, Japan.
> 
> I am evaluating your XXE, can you answer the questions?

Sure.


> 
> I faced the below same issue in FAQ.
> 
> "When I convert documents written in Russian
> 
> (or Polish or Czech or any non-western language) to PDF,
> 
> almost all characters are replaced by the "#" character.
> 
> Is there a workaround for this problem?"
> 
> I select [Options]-[Preferences...], and open "Preferences" window.
> 
> I open "Choose a .ttf file" window to set font, but there are no font 
> files.
> 
> When I open the font folder with the explorer, the fonts files exist.
> 
> (Please see attached file.)
> 
> Is there any reason why I cannot select font in XXE?

Well, I don't see why. Please try what follows:

(1) Select  "All Files" from the "Files of Type" combobox. See attached screenshot #1.

If (1) does not work,

(2) Select the file path of a .ttf file from the Windows explorer, copy it to the clipboard, then paste it (Ctrl-V) into the "File containing the TTF font" text field.

If (2) does not work,

(3) Drag&Drop a .ttf file from the Windows explorer into the "When needed..." file list, then select the dropped .ttf file and click "Edit". See attached screenshot #2.



> 
> If possible, please answer the above.
>


--
XMLmind XML Editor Support List
[email protected]
https://www.xmlmind.com/mailman/listinfo/xmleditor-support
0218-3.png (image/png, 70.4 KB) - not displayed
0218-2.png (image/png, 79.3 KB) - not displayed
XXEerrlog0218-1.txt (text/plain, 4.2 KB)
Invoking process command "dita.toPS"
with parameter ""pdf" "pdf""
Invoking method
"com.xmlmind.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"
Loading "C:\Users\a1192012\Documents\XXE\XXEtest\SimpleTest.dita"...
Using an automatically generated topic map...
Adding frontmatter and/or backmatter to the topic map...
Processing inclusions in the topics...
Processing related links in the topics...
Determining which files are to contain the topics...
Processing IDs and links...
Processing resources...
Saving information about preprocessed files to "C:\Users\a1192012\AppData\Local\Temp\xxe12654675916645680938_d\ditac_lists.ditac_lists"...
Saving preprocessed file "C:\Users\a1192012\AppData\Local\Temp\xxe12654675916645680938_d\__doc.ditac"...
Transforming XML file "__doc.ditac" to "__doc.fo" using "xsl/fo/fo.xsl"
Compiling stylesheet "file:/C:/Program%20Files%20(x86)/XMLmind_XML_Editor/addon/config/dita/xsl/fo/fo.xsl"
Using the following stylesheet parameters:
number=all
ditacListsURI=file:/C:/Users/a1192012/AppData/Local/Temp/xxe12654675916645680938_d/ditac_lists.ditac_lists
outputFormat=pdf
Processing XML file "C:\Users\a1192012\AppData\Local\Temp\xxe12654675916645680938_d\__doc.ditac"
Converting XSL-FO file "__doc.fo" to "__doc.pdf" using FOP
[FOP INFO] This is a TrueType collection file with 2 fonts
[FOP INFO] Containing the following fonts: 
[FOP INFO] BIZ UDMincho Medium
[FOP INFO] BIZ UDPMincho Medium
[FOP ERROR] Failed to read font file file:/C:/Windows/Fonts/BIZ-UDMinchoM.ttc: Name does not exist in the TrueType collection: BIZ UD–¾’© Medium
FOP XSL-FO processor error:
javax.xml.transform.TransformerException: java.lang.RuntimeException: Failed to read font file file:/C:/Windows/Fonts/BIZ-UDMinchoM.ttc
+---------------------------------------
| com.icl.saxon.IdentityTransformer.transform(IdentityTransformer.java:61)
| com.xmlmind.xmleditext.fop1_foprocessor.FOP.doProcessFO(FOP.java:144)
| com.xmlmind.xmleditext.fop1_foprocessor.FOP.processFO(FOP.java:90)
| com.xmlmind.xmleditapp.cmd.process.ProcessFOItem.execute(ProcessFOItem.java:114)
| com.xmlmind.xmleditapp.cmd.process.ProcessFOItem.execute(ProcessFOItem.java:72)
| com.xmlmind.xmleditapp.cmd.process.SubProcessItem.execute(SubProcessItem.java:90)
| com.xmlmind.xmleditapp.cmd.process.ProcessCommand$1.run(ProcessCommand.java:226)
+---------------------------------------
CAUSE:
java.lang.RuntimeException: Failed to read font file file:/C:/Windows/Fonts/BIZ-UDMinchoM.ttc
+---------------------------------------
| org.apache.fop.fonts.LazyFont.load(LazyFont.java:132)
| org.apache.fop.fonts.LazyFont.getAscender(LazyFont.java:235)
| org.apache.fop.fonts.Font.getAscender(Font.java:120)
| org.apache.fop.layoutmgr.BlockLayoutManager.initialize(BlockLayoutManager.java:82)
| org.apache.fop.layoutmgr.AbstractLayoutManager.getChildLM(AbstractLayoutManager.java:118)
| org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:108)
| org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:69)
| org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:251)
| org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:770)
| org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:178)
| org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:158)
| org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:389)
| org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:112)
| org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:143)
| org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)
| org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:139)
| org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:362)
| org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:190)
| org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
| org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
+---------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.