<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div class="">There seems to be a subtle problem with the way subsetted Type0 fonts are built</div>
<div class="">by xdvipdfmx with XeLaTeX jobs, for the purposes of finding the /ToUnicode  resource.</div>
<div class=""><br class="">
</div>
<div class="">The main view is fine, but when checking other aspects, for standards compliance, some basic tests fail.</div>
<div class="">See e.g. with included image.</div>
<div class=""><br class="">
</div>
<div class=""><img apple-inline="yes" id="B8F26A26-7FBD-49E5-8CEC-6992E69E0D8B" width="640" height="345" src="cid:4F0A2FCB-B291-48D1-9450-890808FE0D02@telstra.com.au" class=""></div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Firstly, the CIDSet is not built correctly, by not including all glyphs that are used.</div>
<div class=""> pdfTeX hs a similar problem with regard to Charset.</div>
<div class="">The issue seems to be that if an accented character is built internally from multiple glyphs,</div>
<div class="">then each of those glyphs should be included in the CIDSet, as well as the combined character.</div>
<div class=""><br class="">
</div>
<div class="">Acrobat’s Preflight has a filter to remove such incomplete CIDSets, so this isn’t a crucial deficiency.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Secondly, although clearly present, the /ToUnicode  CMap resource is not being found.</div>
<div class="">The font seems to be named correctly here, according to:</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<blockquote type="cite" class="">
<blockquote type="cite" class="">page 279  of  ISO 32000_1:2008<br class="">
</blockquote>
</blockquote>
</div>
<blockquote type="cite" class="">
<div class=""></div>
</blockquote>
<blockquote type="cite" class="">
<blockquote type="cite" class="">
<div class=""><br class="">
§ 9.7.6  Type 0 Font Dictionaries<br class="">
§ 9.7.6.1  General<br class="">
A Type 0 font dictionary contains the entries listed in Table 121.</div>
<div class=""><br class="">
                            Table 121 – Entries in a Type 0 font dictionary</div>
<div class=""><br class="">
</div>
<div class="">BaseFont  name    (Required) The name of the font. </div>
<div class="">  If the descendant is a Type 0 CIDFont, this name should be the concatenation of the CIDFont’s BaseFont name, a hyphen, </div>
<div class="">  and the CMap name given in the Encoding entry (or the CMapName entry in the CMap). </div>
<div class="">  If the descendant is a Type 2 CIDFont, this name should be the same as the CIDFont’s BaseFont name.</div>
</blockquote>
</blockquote>
<div class=""><br class="">
</div>
<div class="">Since this is a Type 2 CIDFont, the 2nd sentence is applicable.</div>
<div class=""><br class="">
</div>
<div class="">And since it is a subset of the full font, the last sentence below is also applicable.</div>
<div class=""><br class="">
</div>
<div class=""></div>
<blockquote type="cite" class="">
<div class=""></div>
</blockquote>
<blockquote type="cite" class="">
<blockquote type="cite" class="">
<div class="">page 285  of  ISO 32000_1:2008</div>
<div class=""><br class="">
</div>
<div class="">§9.8.3 Font Descriptors for CIDFonts<br class="">
§9.8.3.1  General<br class="">
In addition to the entries in Table 122, the FontDescriptor dictionaries of CIDFonts may contain the entries listed in Table 124.<br class="">
<br class="">
</div>
<div class="">           Table 124 – Additional font descriptor entries for CIDFonts</div>
<div class=""><br class="">
</div>
<div class="">CIDSet   stream    (Optional) A stream identifying which CIDs are present in the CIDFont file. </div>
<div class=""> If this entry is present, the CIDFont shall contain only a subset of the glyphs in the character collection defined by the CIDSystemInfo dictionary. </div>
<div class=""> If it is absent, the only indication of a CIDFont subset shall be the subset tag in the FontName entry (see 9.6.4, "Font Subsets").<br class="">
</div>
</blockquote>
</blockquote>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">So I cannot see why the /ToUnicode resource is not being found.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Would someone with more experience building fonts and subsetting, please have a look at this issue.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Cheers,</div>
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>Ross</div>
<br class="">
<div class=""><br class="">
Dr Ross Moore<br class="">
Mathematics Dept | 12 Wally’s Walk, 734<br class="">
Macquarie University, NSW 2109, Australia<br class="">
T: +61 2 9850 8955  |  F: +61 2 9850 8114<br class="">
M:+61 407 288 255  |  E: <a href="mailto:ross.moore@mq.edu.au" class="">ross.moore@mq.edu.au</a><br class="">
<br class="">
http://www.maths.mq.edu.au<br class="">
<br class="">
<span style="font-size: 12px; line-height: normal;"><a href="http://mq.edu.au/" target="_blank" style="font-size: 12px; line-height: normal;" class=""><span><br class="Apple-interchange-newline" style="caret-color: rgb(0, 105, 217); color: rgb(0, 105, 217); font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">
<span style="caret-color: rgb(0, 105, 217); color: rgb(0, 105, 217); font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span><span><img apple-inline="yes" id="E1D22814-EDE4-4F24-8AAB-E94C0628B554" src="cid:image001.png@01D030BE.D37A46F0" class=""></span></span></span></span></a></span><br class="">
<br class="">
<br class="">
<br class="">
<br class="">
CRICOS Provider Number 00002J. Think before you print. <br class="">
Please consider the environment before printing this email.<br class="">
<br class="">
This message is intended for the addressee named and may <br class="">
contain confidential information. If you are not the intended <br class="">
recipient, please delete it and notify the sender. Views expressed <br class="">
in this message are those of the individual sender, and are not <br class="">
necessarily the views of Macquarie University.</div>
<br class="">
</body>
</html>