[XeTeX] XeTeX Win32 PDF file output error, second phase

Maurice Bauhahn bauhahnm at mac.com
Sat Aug 12 16:25:37 CEST 2006


Thank you so much for your patience. Happily I've had some degree of  
success!!! A perfectly formed PDF file has been received:-)

I opened the Italic font with TTX and UltraEdit on the PC and found  
that in fact there were two spots where 'Regular' was in the  
nomenclature of the font, so changed those to Italic. There was no  
occurrence of 'Regular' in the Bold Italic font. Admittedly...there  
may be some problem with the Italic font for TTX gives the following  
two messages while compiling the font:

Build\buildttx\out1.pyz/fontTools.misc.textTools:64: FutureWarning: x<<y
losing bits or changing sign will return a long in Python 2.4 and up
Build\buildttx\out1.pyz/fcntl:7: DeprecationWarning: the FCNTL module is
deprecated; please use fcntl

Compiling "PhetsarathOT-Italic.ttx" to "PhetsarathOT-Italic.ttf"...
Parsing 'GlyphOrder' table...
Parsing 'head' table...
Parsing 'hhea' table...
Parsing 'maxp' table...
Parsing 'OS/2' table...
Parsing 'hmtx' table...
Parsing 'cmap' table...
Parsing 'fpgm' table...
Parsing 'prep' table...
Parsing 'cvt ' table...
Parsing 'loca' table...
Parsing 'glyf' table...
Parsing 'kern' table...
Parsing 'name' table...
Parsing 'post' table...
Parsing 'gasp' table...
Parsing 'GDEF' table...
Parsing 'GPOS' table...
Parsing 'GSUB' table...


Subsequently I'm able to generate the PDF file in a two step process  
(but still get the suspect DOS16 errors when I try to run it simply  
as xetex 41Matt.tex...and when run as one step there is no PDF file  
output on the file system despite the message which follows).

Running xetex 41Matt.tex I get a log which ends:
"\openout0 = `41Matt.pgs'.

[67] )
Output written on 41Matt.xdv (67 pages, 1402156 bytes)."

The output (in addition to the lovely PDF file!!!!) when I run:  
xdvipdfmx -vv 41Matt.xdv is:

DVI Comment:  XeTeX output 2006.08.12:1442
41Matt.xdv -> 41Matt.pdf
[1<PhetsarathOT(Phetsarath OT:Regular)@5.98pt<NATIVE- 
FONTMAP:PhetsarathOT/H>
fontmap: PhetsarathOT/H -> c:/windows/fonts/PhetsarathOT.ttf(Identity-H)

pdf_font>> Input encoding "Identity-H" requires at least 2 bytes.
pdf_font>> The -m <00> option will be assumed for
"c:/windows/fonts/PhetsarathOT.ttf".
(CID:PhetsarathOT)
pdf_font>> Type0 font "c:/windows/fonts/PhetsarathOT.ttf"
cmap_id=<Identity-H,0> opened at font_id=<PhetsarathOT/H,0>.
 ><PhetsarathOT-Bold(Phetsarath
 >OT:Bold)@16.94pt<NATIVE-FONTMAP:PhetsarathOT-Bold/H>
fontmap: PhetsarathOT-Bold/H ->
c:/windows/fonts/PhetsarathOT-Bold.ttf(Identity-H)

pdf_font>> Input encoding "Identity-H" requires at least 2 bytes.
pdf_font>> The -m <00> option will be assumed for
"c:/windows/fonts/PhetsarathOT-Bold.ttf".
(CID:PhetsarathOT-Bold)
pdf_font>> Type0 font "c:/windows/fonts/PhetsarathOT-Bold.ttf"
cmap_id=<Identity-H,0> opened at font_id=<PhetsarathOT-Bold/H,1>.
 ><PhetsarathOT-Bold(Phetsarath OT:Bold)@8.72pt
fontmap: PhetsarathOT-Bold/H ->
c:/windows/fonts/PhetsarathOT-Bold.ttf(Identity-H)[map:<00>]
(CID:PhetsarathOT-Bold)
pdf_font>> Type0 font "c:/windows/fonts/PhetsarathOT-Bold.ttf"
cmap_id=<Identity-H,0> opened at font_id=<PhetsarathOT-Bold/H,2>.
 ><PhetsarathOT-Italic(Phetsarath
 >OT:Italic)@8.72pt<NATIVE-FONTMAP:PhetsarathOT-Italic/H>
fontmap: PhetsarathOT-Italic/H ->
c:/windows/fonts/PhetsarathOT-Italic.ttf(Identity-H)

pdf_font>> Input encoding "Identity-H" requires at least 2 bytes.
pdf_font>> The -m <00> option will be assumed for
"c:/windows/fonts/PhetsarathOT-Italic.ttf".
(CID:PhetsarathOT-Italic)
pdf_font>> Type0 font "c:/windows/fonts/PhetsarathOT-Italic.ttf"
cmap_id=<Identity-H,0> opened at font_id=<PhetsarathOT-Italic/H,3>.
 ><PhetsarathOT(Phetsarath OT:Regular)@8.72pt
fontmap: PhetsarathOT/H ->
c:/windows/fonts/PhetsarathOT.ttf(Identity-H)[map:<00>]
(CID:PhetsarathOT)
pdf_font>> Type0 font "c:/windows/fonts/PhetsarathOT.ttf"
cmap_id=<Identity-H,0> opened at font_id=<PhetsarathOT/H,4>.
 ><CharisSIL-Bold(Charis SIL:Bold)@8.97pt<NATIVE-FONTMAP:CharisSIL- 
Bold/H>
fontmap: CharisSIL-Bold/H -> c:/windows/fonts/CharisSILB.ttf(Identity-H)

pdf_font>> Input encoding "Identity-H" requires at least 2 bytes.
pdf_font>> The -m <00> option will be assumed for
"c:/windows/fonts/CharisSILB.ttf".
(CID:CharisSIL-Bold)
pdf_font>> Type0 font "c:/windows/fonts/CharisSILB.ttf"
cmap_id=<Identity-H,0> opened at font_id=<CharisSIL-Bold/H,5>.
 >][2<PhetsarathOT-Italic(Phetsarath OT:Italic)@7.22pt
fontmap: PhetsarathOT-Italic/H ->
c:/windows/fonts/PhetsarathOT-Italic.ttf(Identity-H)[map:<00>]
(CID:PhetsarathOT-Italic)
pdf_font>> Type0 font "c:/windows/fonts/PhetsarathOT-Italic.ttf"
cmap_id=<Identity-H,0> opened at font_id=<PhetsarathOT-Italic/H,6>.
 ><CharisSIL-Bold(Charis SIL:Bold)@30.88pt
fontmap: CharisSIL-Bold/H ->
c:/windows/fonts/CharisSILB.ttf(Identity-H)[map:<00>]
(CID:CharisSIL-Bold)
pdf_font>> Type0 font "c:/windows/fonts/CharisSILB.ttf"
cmap_id=<Identity-H,0> opened at font_id=<CharisSIL-Bold/H,7>.
 ><PhetsarathOT-Italic(Phetsarath OT:Italic)@5.98pt
fontmap: PhetsarathOT-Italic/H ->
c:/windows/fonts/PhetsarathOT-Italic.ttf(Identity-H)[map:<00>]
(CID:PhetsarathOT-Italic)
pdf_font>> Type0 font "c:/windows/fonts/PhetsarathOT-Italic.ttf"
cmap_id=<Identity-H,0> opened at font_id=<PhetsarathOT-Italic/H,8>.
 ><PhetsarathOT(Phetsarath OT:Regular)@7.22pt
fontmap: PhetsarathOT/H ->
c:/windows/fonts/PhetsarathOT.ttf(Identity-H)[map:<00>]
(CID:PhetsarathOT)
pdf_font>> Type0 font "c:/windows/fonts/PhetsarathOT.ttf"
cmap_id=<Identity-H,0> opened at font_id=<PhetsarathOT/H,9>.
 ><PhetsarathOT-Bold(Phetsarath OT:Bold)@7.22pt
fontmap: PhetsarathOT-Bold/H ->
c:/windows/fonts/PhetsarathOT-Bold.ttf(Identity-H)[map:<00>]
(CID:PhetsarathOT-Bold)
pdf_font>> Type0 font "c:/windows/fonts/PhetsarathOT-Bold.ttf"
cmap_id=<Identity-H,0> opened at font_id=<PhetsarathOT-Bold/H,10>.
 >][3][4][5][6][7][8][9][10][11][12][13][14][15][16][17][18][19][20] 
[21][22][23][24][25][26][27][28][29][30][31][32][33][34][35][36][37] 
[38][39][40][41][42][43][44][45][46][47][48][49][50][51][52][53][54] 
[55][56][57][58][59][60][61][62][63][64][65][66][67]
otf_cmap>> Creating ToUnicode CMap for
"c:/windows/fonts/PhetsarathOT.ttf"...

otf_cmap>> Creating ToUnicode CMap for
"c:/windows/fonts/PhetsarathOT-Bold.ttf"...

otf_cmap>> Creating ToUnicode CMap for
"c:/windows/fonts/PhetsarathOT-Italic.ttf"...

otf_cmap>> Creating ToUnicode CMap for "c:/windows/fonts/ 
CharisSILB.ttf"...
(CID:c:/windows/fonts/PhetsarathOT.ttf[ZQTQIB+PhetsarathOT] 
[CIDFontType2][93
glyphs (Max CID: 285)][20855
bytes])(CID:c:/windows/fonts/PhetsarathOT-Bold.ttf[IABHNF 
+PhetsarathOT-Bold][CIDFontType2][63
glyphs (Max CID: 285)][24219
bytes])(CID)(CID:c:/windows/fonts/PhetsarathOT-Italic.ttf[GWTDSM 
+PhetsarathOT-Italic][CIDFontType2][73
glyphs (Max CID: 285)][19848
bytes])(CID)(CID:c:/windows/fonts/CharisSILB.ttf[EUFSVE+CharisSIL- 
Bold][CIDFontType2][12
glyphs (Max CID: 1635)][36314 bytes])(CID)(CID)(CID)(CID)(CID)
Compression eliminated approximately 1165601 bytes
402319 bytes written





On 12 Aug 2006, at 11:13, Jonathan Kew wrote:

> Hi Maurice,
>
> Sorry to hear of your frustrations with the Laotian fonts on W32.
> Let's see if we can get to the bottom of this.
>
> First, reviewing the font-loading records reported by xdvipdfmx:
>
>> <PhetsarathOT(Phetsarath OT:Regular)@5.98pt<NATIVE-
>> FONTMAP:PhetsarathOT/H>
>> fontmap: PhetsarathOT/H -> c:/windows/fonts/PhetsarathOT.ttf
>> (Identity-H)
>
> Here, it's loading the font with family name "Phetsarath OT", style
> "Regular", PostScript name "PhetsarathOT". This looks fine.
>
>> <PhetsarathOT-Bold(Phetsarath OT:Bold)@16.94pt<NATIVE-
>> FONTMAP:PhetsarathOT-Bold
>> /H>
>> fontmap: PhetsarathOT-Bold/H -> c:/windows/fonts/PhetsarathOT- 
>> Bold.ttf
>> (Identity-
>> H)
>
> Family "Phetsarath OT", style "Bold", PostScript name "PhetsarathOT-
> Bold". Also fine.
>
>> <PhetsarathOT-Bold(Phetsarath OT:Bold)@8.72pt
>> fontmap: PhetsarathOT-Bold/H -> c:/windows/fonts/PhetsarathOT- 
>> Bold.ttf
>> (Identity-
>> H)
>
> The bold font again, used at a different size.
>
>> <PhetsarathOT-Italic(Phetsarath OT:Regular)@8.72pt
>> ** ERROR ** Cannot proceed without the "native" font: PhetsarathOT-
>> Italic (Phets
>> arath OT Regular)...
>
> This one looks suspect: it is expecting the PostScript name to be
> "PhetsarathOT-Italic", but the style name is "Regular". I think this
> indicates that the naming in the Italic font is still inconsistent,
> and that's what is confusing xdvipdfmx.
>
> I may be able to make the driver more intelligent about locating
> fonts, even when the names are mixed like this (after all, xetex
> found and used a font -- though whether it was the one you wanted is
> another matter!). But I suspect the problem will be solved if you can
> get the naming fixed in the Italic font. Regular and Bold seem to be
> loading OK now. (Better check BoldItalic too; it didn't get that far
> this time.)
>
>> SECOND, subsequently when I tried to test whether the .xdv file was
>> corrupted by processing it back on my Macintosh as follows the
>> versions appear to be incompatible:
>>
>> $ xdv2pdf 41Matt.xdv
>> *** bad XDV file: version=5, expected 4
>
> The version of the .xdv format was changed back in October 2005 (as
> part of the changes to make xetex run on other platforms; there used
> to be some OS X-specific aspects of the format). So this indicates
> that you have a fairly old version on your Mac; if you update to the
> current release, the .xdv files should be compatible (provided the
> same fonts are available on both machines).
>
>> THIRD, are there any flags that I could use with xdvipdfmx that would
>> cause it to accept my fonts?
>
> No, the font naming (and/or the software, but the naming is probably
> quicker to update!) needs to be fixed.
>
> HTH,
>
> JK
>
>
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex



More information about the XeTeX mailing list