[tex-live] XeTeX Complete Success
Jiang Jiang
gzjjgod at gmail.com
Sun Apr 26 21:00:30 CEST 2015
Hi Werner,
Do you aware of any problem with FreeType's TTC support in regards to
Hannotate.ttc and HanziPen.ttc added in OS X 10.9?
XeTeX has the following code:
error = FT_New_Face(gFreeTypeLibrary, (char *) pathname, 0, &face);
if (!error) {
if (face->num_faces > 1) {
int num_faces = face->num_faces;
char *ps_name1 = getNameFromCTFont(ctFontRef, kCTFontPostScriptNameKey);
int i;
*index = -1;
FT_Done_Face (face);
for (i = 0; i < num_faces; i++) {
error = FT_New_Face (gFreeTypeLibrary, (char *) pathname, i, &face);
if (!error) {
const char *ps_name2 = FT_Get_Postscript_Name(face);
if (strcmp(ps_name1, ps_name2) == 0) {
*index = i;
break;
}
FT_Done_Face (face);
}
}
free(ps_name1);
}
}
to read a font from ttc and find out the index, for HanziPen.ttc for
instance there should be 4 faces, which face->num_faces reported
correctly. However, FT_Get_Postscript_Name() returned: HanziPenSC-W3,
HanziPenSC-W3, HanziPenSC-W5, HanziPenSC-W5 for these 4 faces, while
the correct ones should be: HanziPenSC-W3, HanziPenTC-W3,
HanziPenSC-W5, HanziPenTC-W5.
- Jiang
On Sun, Apr 26, 2015 at 7:36 PM, Jiang Jiang <gzjjgod at gmail.com> wrote:
> Hi,
>
> On Sun, Apr 26, 2015 at 7:29 PM, Richard Koch
> <richardmoncriefkoch at icloud.com> wrote:
>> Folks,
>>
>> Amazingly, the full story for XeTeX and Mac fonts is as follows:
>>
>> a) The following fonts were fixed and now work
>>
>> HeadlineA
>> Hannotate SC
>> HanziPen SC
>> ITF Devanagari
>> Kohinoor Devanagari
>> Osaka
>> PCMyungio
>> PilGi
>> Skia
>> Yuppy SC
>> Yuppy TC
>> Apple Chancery
>>
>> b) The following fonts are broken, but Khaled reports
>> that they are all bitmapped fonts; each produces the same
>> error in the log, which does not involve xdvipdfm-x.
>>
>> GB18030 Bitmap
>> Hannotate TC
>> HanziPen TC
>> Apple Color Emoji
>>
>> Note that Hannotate TC and HanziPen TC are broken, but
>> Hannotate SC and HanziPen SC work.
>
> Hannotate and HanziPen aren't bitmap fonts, they are OpenType
> PostScript fonts wrapped in TrueType Collection format. I can confirm
> that we can't use these yet, but the problem is most likely not in
> xdvipdfmx but in XeTeX's font lookup code. I will look into this.
>
> - Jiang
More information about the tex-live
mailing list