[XeTeX] possible bug in xdvipdfmx
Pablo Rodríguez
oinos at web.de
Sat Jun 17 21:09:19 CEST 2006
Jonathan Kew wrote:
> On 17 Jun 2006, at 6:03 pm, Ralf Stubner wrote:
>
>> Pablo Rodríguez <oinos at web.de> writes:
>>> This is really weird (from my ignorant point of view), since (x)
>>> dvipdfmx seem to have problems embedding TrueType fonts when using
>>> TFM files.
>>>
>>> Could it be something related to the way TFM files for TrueType and
>>> OpenType fonts are generated?
>>>
>> I am not really sure what you mean with TFM here. When XeTeX (and
>> xdvipdfmx) use a font directly (native font), then there are no TFM
>> files involved. All the metrics information is taken directly from the
>> TTF/OTF file.
>
> Right; TFMs don't come into the picture.
Sorry, I was wrong. I thought I read TFM somewhere in an error message
when using a non-existing font.
>> What I find odd is that the duplicate embedding only happens with
>> TrueType fonts, not with OpenType fonts. Or, to be more precise, it
>> happens for TrueType fonts and OpenType fonts using TrueType glyph
>> data. It does not happen for OpenType fonts using PostScript/CFF glyph
>> data.
>
> I've checked-in a modification to xdvipdfmx that is supposed to fix
> this, so that it doesn't create multiple PDF resources for the same
> TT font at different sizes any more.
>
> I'd consider this an experimental modification, but it seems to work
> well in simple tests, at least. Feel free to check out the latest rev
> and give it a try.
It works fine for me. I haven't tested it in depth, but it works fine
with a 350 pages book.
Thanks again for your excellent work,
Pablo
More information about the XeTeX
mailing list