xdvipdfmx:fatal: invalid offsize data
Ken Moffat
zarniwhoop at ntlworld.com
Wed Apr 29 00:11:36 CEST 2020
One of the things I occasionally do (looks as if I last did it in
February 2018, so probably using texlive from 2017) is to use
xelatex to create a PDF from a font to determine which languages it
supports (from a subset of languages which use uncommon glyphs).
Originally I'd used libreoffice writer, but years ago that started
using fontconfig and picked missing glyphs from other available
fonts, which rather broke the test if the fonts were similar.
I've just tried this using (self-compiled) TL2020. With DejaVu Sans
it works as expected, but with Cantarell Regular (from
cantarell-fonts-0.201 xelatex fails with
xdvipdfmx:fatal: invalid offsize data
The following mwe shows this:
\documentclass[10pt,a4paper]{article}
\usepackage{fontspec}
\setmainfont{Cantarell}
\begin{document}
Write gibberish here.
\end{document}
and for that the full output on my term is
ken at origin ~/test-fonts $xelatex mwe.tex
This is XeTeX, Version 3.14159265-2.6-0.999992 (TeX Live 2020 - BLFS) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
(./mwe.tex
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-03-06>
(/opt/texlive/2020/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
(/opt/texlive/2020/texmf-dist/tex/latex/base/size10.clo))
(/opt/texlive/2020/texmf-dist/tex/latex/fontspec/fontspec.sty
(/opt/texlive/2020/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(/opt/texlive/2020/texmf-dist/tex/latex/l3kernel/expl3.sty
(/opt/texlive/2020/texmf-dist/tex/latex/l3backend/l3backend-xdvipdfmx.def)))
(/opt/texlive/2020/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
(/opt/texlive/2020/texmf-dist/tex/latex/base/fontenc.sty)
(/opt/texlive/2020/texmf-dist/tex/latex/fontspec/fontspec.cfg))) (./mwe.aux)
(/opt/texlive/2020/texmf-dist/tex/latex/base/ts1cmr.fd) [1] (./mwe.aux)
xdvipdfmx:fatal: invalid offsize data
No output PDF file written.
)
Error 256 (driver return code) generating output;
file mwe.pdf may not be valid.
Transcript written on mwe.log.
mwe.pdf contains just a header and then a few UTF-8 characters:
ken at origin ~/test-fonts $cat mwe.pdf
%PDF-1.5
%äðíø
Any ideas what causes this, and how to work around it, please ?
I'll attach the log, which seems to show that the Cantarell font has
been found, albeit not B, BI, I variants.
ĸen
--
He could send for Ptraci, his favourite handmaiden. She was special.
Her singing always cheered him up. Life seemed so much brighter when
she stopped. -- Pyramids
-------------- next part --------------
This is XeTeX, Version 3.14159265-2.6-0.999992 (TeX Live 2020 - BLFS) (preloaded format=xelatex 2020.4.11) 28 APR 2020 23:02
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**mwe.tex
(./mwe.tex
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-03-06>
(/opt/texlive/2020/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
(/opt/texlive/2020/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2019/12/20 v1.4l Standard LaTeX file (size option)
)
\c at part=\count163
\c at section=\count164
\c at subsection=\count165
\c at subsubsection=\count166
\c at paragraph=\count167
\c at subparagraph=\count168
\c at figure=\count169
\c at table=\count170
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen134
)
(/opt/texlive/2020/texmf-dist/tex/latex/fontspec/fontspec.sty
(/opt/texlive/2020/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(/opt/texlive/2020/texmf-dist/tex/latex/l3kernel/expl3.sty
Package: expl3 2020-03-06 L3 programming layer (loader)
(/opt/texlive/2020/texmf-dist/tex/latex/l3backend/l3backend-xdvipdfmx.def
File: l3backend-xdvipdfmx.def 2020-03-12 L3 backend support: xdvipdfmx
\g__graphics_track_int=\count171
\l__pdf_internal_box=\box45
\g__pdf_backend_object_int=\count172
\g__pdf_backend_annotation_int=\count173
))
Package: xparse 2020-03-06 L3 Experimental document command parser
\l__xparse_current_arg_int=\count174
\g__xparse_grabber_int=\count175
\l__xparse_m_args_int=\count176
\l__xparse_v_nesting_int=\count177
)
Package: fontspec 2020/02/21 v2.7i Font selection for XeLaTeX and LuaLaTeX
(/opt/texlive/2020/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
Package: fontspec-xetex 2020/02/21 v2.7i Font selection for XeLaTeX and LuaLaTe
X
\l__fontspec_script_int=\count178
\l__fontspec_language_int=\count179
\l__fontspec_strnum_int=\count180
\l__fontspec_tmp_int=\count181
\l__fontspec_tmpa_int=\count182
\l__fontspec_tmpb_int=\count183
\l__fontspec_tmpc_int=\count184
\l__fontspec_em_int=\count185
\l__fontspec_emdef_int=\count186
\l__fontspec_strong_int=\count187
\l__fontspec_strongdef_int=\count188
\l__fontspec_tmpa_dim=\dimen135
\l__fontspec_tmpb_dim=\dimen136
\l__fontspec_tmpc_dim=\dimen137
(/opt/texlive/2020/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2020/02/11 v2.0o Standard LaTeX package
)
(/opt/texlive/2020/texmf-dist/tex/latex/fontspec/fontspec.cfg)))
Package fontspec Info: Could not resolve font "Cantarell/BI" (it probably
(fontspec) doesn't exist).
Package fontspec Info: Could not resolve font "Cantarell/B" (it probably
(fontspec) doesn't exist).
Package fontspec Info: Could not resolve font "Cantarell/I" (it probably
(fontspec) doesn't exist).
Package fontspec Info: Font family 'Cantarell(0)' created for font 'Cantarell'
(fontspec) with options [Ligatures=TeX].
(fontspec)
(fontspec) This font family consists of the following NFSS
(fontspec) series/shapes:
(fontspec)
(fontspec) - 'normal' (m/n) with NFSS spec.:
(fontspec) <->"Cantarell/OT:script=latn;language=dflt;mapping=tex-t
ext;"
(fontspec) - 'small caps' (m/sc) with NFSS spec.:
(./mwe.aux)
\openout1 = `mwe.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 5.
LaTeX Font Info: Trying to load font information for TS1+cmr on input line 5
.
(/opt/texlive/2020/texmf-dist/tex/latex/base/ts1cmr.fd
File: ts1cmr.fd 2019/12/16 v2.5j Standard LaTeX font definitions
)
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for TU/lmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
Package fontspec Info: Adjusting the maths setup (use [no-math] to avoid
(fontspec) this).
\symlegacymaths=\mathgroup4
LaTeX Font Info: Overwriting symbol font `legacymaths' in version `bold'
(Font) OT1/cmr/m/n --> OT1/cmr/bx/n on input line 5.
LaTeX Font Info: Redeclaring math accent \acute on input line 5.
LaTeX Font Info: Redeclaring math accent \grave on input line 5.
LaTeX Font Info: Redeclaring math accent \ddot on input line 5.
LaTeX Font Info: Redeclaring math accent \tilde on input line 5.
LaTeX Font Info: Redeclaring math accent \bar on input line 5.
LaTeX Font Info: Redeclaring math accent \breve on input line 5.
LaTeX Font Info: Redeclaring math accent \check on input line 5.
LaTeX Font Info: Redeclaring math accent \hat on input line 5.
LaTeX Font Info: Redeclaring math accent \dot on input line 5.
LaTeX Font Info: Redeclaring math accent \mathring on input line 5.
LaTeX Font Info: Redeclaring math symbol \colon on input line 5.
LaTeX Font Info: Redeclaring math symbol \Gamma on input line 5.
LaTeX Font Info: Redeclaring math symbol \Delta on input line 5.
LaTeX Font Info: Redeclaring math symbol \Theta on input line 5.
LaTeX Font Info: Redeclaring math symbol \Lambda on input line 5.
LaTeX Font Info: Redeclaring math symbol \Xi on input line 5.
LaTeX Font Info: Redeclaring math symbol \Pi on input line 5.
LaTeX Font Info: Redeclaring math symbol \Sigma on input line 5.
LaTeX Font Info: Redeclaring math symbol \Upsilon on input line 5.
LaTeX Font Info: Redeclaring math symbol \Phi on input line 5.
LaTeX Font Info: Redeclaring math symbol \Psi on input line 5.
LaTeX Font Info: Redeclaring math symbol \Omega on input line 5.
LaTeX Font Info: Redeclaring math symbol \mathdollar on input line 5.
LaTeX Font Info: Redeclaring symbol font `operators' on input line 5.
LaTeX Font Info: Encoding `OT1' has changed to `TU' for symbol font
(Font) `operators' in the math version `normal' on input line 5.
LaTeX Font Info: Overwriting symbol font `operators' in version `normal'
(Font) OT1/cmr/m/n --> TU/Cantarell(0)/m/n on input line 5.
LaTeX Font Info: Encoding `OT1' has changed to `TU' for symbol font
(Font) `operators' in the math version `bold' on input line 5.
LaTeX Font Info: Overwriting symbol font `operators' in version `bold'
(Font) OT1/cmr/bx/n --> TU/Cantarell(0)/m/n on input line 5.
LaTeX Font Info: Overwriting symbol font `operators' in version `normal'
(Font) TU/Cantarell(0)/m/n --> TU/Cantarell(0)/m/n on input li
ne 5.
LaTeX Font Info: Overwriting math alphabet `\mathit' in version `normal'
(Font) OT1/cmr/m/it --> TU/Cantarell(0)/m/it on input line 5.
LaTeX Font Info: Overwriting math alphabet `\mathbf' in version `normal'
(Font) OT1/cmr/bx/n --> TU/Cantarell(0)/b/n on input line 5.
LaTeX Font Info: Overwriting math alphabet `\mathsf' in version `normal'
(Font) OT1/cmss/m/n --> TU/lmss/m/n on input line 5.
LaTeX Font Info: Overwriting math alphabet `\mathtt' in version `normal'
(Font) OT1/cmtt/m/n --> TU/lmtt/m/n on input line 5.
LaTeX Font Info: Overwriting symbol font `operators' in version `bold'
(Font) TU/Cantarell(0)/m/n --> TU/Cantarell(0)/b/n on input li
ne 5.
LaTeX Font Info: Overwriting math alphabet `\mathit' in version `bold'
(Font) OT1/cmr/bx/it --> TU/Cantarell(0)/b/it on input line 5.
LaTeX Font Info: Overwriting math alphabet `\mathsf' in version `bold'
(Font) OT1/cmss/bx/n --> TU/lmss/b/n on input line 5.
LaTeX Font Info: Overwriting math alphabet `\mathtt' in version `bold'
(Font) OT1/cmtt/m/n --> TU/lmtt/b/n on input line 5.
[1
] (./mwe.aux) )
Here is how much of TeX's memory you used:
3095 strings out of 479418
101617 string characters out of 5887224
386210 words of memory out of 5000000
20659 multiletter control sequences out of 15000+600000
532394 words of font info for 31 fonts, out of 8000000 for 9000
1348 hyphenation exceptions out of 8191
44i,4n,70p,248b,229s stack positions out of 5000i,500n,10000p,200000b,80000s
Error 256 (driver return code) generating output;
file mwe.pdf may not be valid.
More information about the tex-live
mailing list.