From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/24424 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Craig Parker Newsgroups: gmane.text.pandoc Subject: Re: Why does Pandoc fail to create a PDF for certain fonts, but works for other fonts with otherwise the same command? Date: Tue, 11 Feb 2020 09:24:34 -0500 Message-ID: <580978a3-ebcb-429d-266e-4c825c61badb@linuxacademy.com> References: <87lfp9nr1b.fsf@fastmail.fm> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------4755203022F28A7484E14B5B" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="33257"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDAZNM4HRACRBJPSRLZAKGQEHOJP4OA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Feb 11 15:24:42 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pg1-f189.google.com ([209.85.215.189]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j1WSv-0008XI-Ms for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 11 Feb 2020 15:24:41 +0100 Original-Received: by mail-pg1-f189.google.com with SMTP id z10sf7532894pgz.8 for ; Tue, 11 Feb 2020 06:24:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1581431080; cv=pass; d=google.com; s=arc-20160816; b=nsvy36TKxqjsZwXfbuWKSgz4YP3xoDxKXmRfQbT6ZHsGe0lpKCSHfBz0DcoFvlYW0V SjmAXQKRQnejPxeELApAVimzyCsVUvBSRIUbFdIqP/YmYSbymE5raJmmVnELeYh254Zj 0O+XS6JbglAeIIgW5nwyyefBrLWuFZ8hGGJOqwPMkPrdsLDbcEcx11y3Z5aX7Kl2D946 wT0PP8VYz1RUf2v3LZlvWSrKmZA6Acnk1xi3+f664g+SXc6D11+QTlqoGb8WQfU/HvOd XIwYoRRf8dUHJPc0DHNsZMYa8wGgt8t/4MP4/L0P0kRiASWktOYn8y8Ne7GgyyfGUvcC oF1A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:sender:dkim-signature; bh=5SyS8bQ9GZhK40ZX4V32ymNvJA0Ius+Oa/ENnMJUoyc=; b=BDXkHlNwHEq8BricBmfYvRN0Oohxftm+tk2z46MwpjYqTUmKUsqSUE/ZKgEcG5voCt gskv2R83YnIAF6Df7QciHP6/ok9f3Qnb53na5nhGGNUSCiBfMYRMuYHYoM1DGWBkNVze x89WOcaIqSGMNFV/AliJVgXeDeZf25jL7/gmqvVrp09fLkAgYKhEZ3uu8E8rtQ/TT8D0 P7UXqcWE+ECXhHTYABFC/FdPet/4IV/k1VhgYchQu9WFaOuFgT7XKbrKjJUlOVF8w2vr Lvfc3xp1JmkFpyTIUCxKJKRcwS4PvmFNOxkvlQczcJYJ70ogERIOHfZxpwtiKMp18G7C A5dg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@linuxacademy.com header.s=google header.b=xne3tl65; spf=pass (google.com: domain of craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org designates 2607:f8b0:4864:20::f29 as permitted sender) smtp.mailfrom=craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=5SyS8bQ9GZhK40ZX4V32ymNvJA0Ius+Oa/ENnMJUoyc=; b=lpue+5JB1s+juTzpaBfCK7aL0yQorL7hlIaSg9equu/RRWii56s+nsJtpToPD0a0Yl 1MQvu7741EMHJc1VTBUzVvFhdH/nExzoDb+JWka83Cdd77waMWVRe1biEbZuTuzDJUuP y07XWp9Mxih/ppevY2nZnisBBc5I7CXG9jrM+/+eIf+WR8/fHILMXd2XN7bu2bEhGBlf dIahvJM++ziZo7v0U8woFvLjVpbhkN7Y2on299Y4GkRzQe1R5bYhrWk1Gfrxo/ymzCqz f5sdsetDMocuatrulnryuMToBAUxEhBYxN+hhxhW7gUz3JAaWKWVndViWxis1a50NBqu 61eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=5SyS8bQ9GZhK40ZX4V32ymNvJA0Ius+Oa/ENnMJUoyc=; b=UONCtgzIUMoNeOkzWG/46WYG1tJf7CmfyjVqQADF6pXu9stVt0VNPS64njAXGy1Xa5 zD0uHjCxr51rR3S7XXLyVFoNbGYgasKxx4OWRed17YzzUmKqDlZuDlgxc1fjjxgKsR44 PrcchUQmhx78xfjFx+2iEZEaz4G+EnEEW5Ek+6OQQoWOOmC+eXPjfOg9qh/ehtFD3Zs4 ipa0j7a2mg2Zcthp7b1Kf1YCsDZJTyKRMPtqyF2fSdzG3iQdZalXGxOG70TN3vV1ajV/ B88WCeNghIAFWA+bxfQXObVa3UJ4GtiSgHMTG9QKR2QxnZmNQoEuwU13Xm6CWo9qbOJO Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAX3aDeD+RICoZY2LG69VMxVxm24yujI2sOxysUC9KupA3CGA9OB iNkLCPTAC8yREh1wEKJkZuE= X-Google-Smtp-Source: APXvYqyM+dclAG0TEohL5qkZftBafUzHDxcaNzRQO4CeGgGbztN6SvXP3NwdDWOAzLoSmVWQelznOw== X-Received: by 2002:a17:90a:8d86:: with SMTP id d6mr3930289pjo.119.1581431080440; Tue, 11 Feb 2020 06:24:40 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aa7:874e:: with SMTP id g14ls5618588pfo.9.gmail; Tue, 11 Feb 2020 06:24:37 -0800 (PST) X-Received: by 2002:a63:e042:: with SMTP id n2mr3561507pgj.308.1581431076928; Tue, 11 Feb 2020 06:24:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581431076; cv=none; d=google.com; s=arc-20160816; b=VpM2JPFS8pNSuAcamUiGcFyEcvg3FKyB62ytMN5juOA5FvmAMgpWN3x6ZxPSU7DPA3 2CSWCjgfg5Kvfr5O/Vo2cHNW2IHqo3UDj44eue8MKFYSU+LySdeTMDMzgow81HqAERfp DrFdcwKmiO/AA02zvO4kE7pHSd0VLeDY1wOTsPK5z9Oj6gw7bpBWVZ4KQHO36iNmixH/ q8R3gR2gzPRms69WaaNzyyMItWpy140cqFR3AHRccnlkrTrwktXv0YKAk/24cKnUxnz+ fLGMW2TvfSeEVgGMcthh1UzbdJaZTfKb6KuHNyL6RYbBxkXYBuv7qRaG+tjEq4wgLy9M jTjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=L/78wtOQsVJgDlnk1PhFpYUifAJg+jVfC8doqVhmQ18=; b=ErZQPhChuXld45HZQv0/gZ1B2dDLQZs0cus6Uo39Ge7PMiJVc7zmhzawnqjcL0Xuf4 RM83LhIiDb/vbeXFz/vZY16G+/Ic3nmAbJawW/13znWf5ia2SHavBgkf3AYOCIGNitU3 jJxiJrn6vl01+VHe6POCz+ne1d7TyWLRBEBMFpmOvBrdW3etdaw2huN/5TN1fRVl+Dg2 onOLPvYbDa03bFtQmYaP3QfkooVDYwHWGVuNWU1wgw+FM/9F7R6ii0c4zj+PScZ38xdu fiDQpSg+mJD2sFCovVYSP+F6Wky60OfqwUfr1RsHqBkIAD2S/m86LmyP+HtIuyWo4rS/ SjmA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@linuxacademy.com header.s=google header.b=xne3tl65; spf=pass (google.com: domain of craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org designates 2607:f8b0:4864:20::f29 as permitted sender) smtp.mailfrom=craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org Original-Received: from mail-qv1-xf29.google.com (mail-qv1-xf29.google.com. [2607:f8b0:4864:20::f29]) by gmr-mx.google.com with ESMTPS id t34si72462pjb.3.2020.02.11.06.24.36 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Feb 2020 06:24:36 -0800 (PST) Received-SPF: pass (google.com: domain of craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org designates 2607:f8b0:4864:20::f29 as permitted sender) client-ip=2607:f8b0:4864:20::f29; Original-Received: by mail-qv1-xf29.google.com with SMTP id g6so5043448qvy.5 for ; Tue, 11 Feb 2020 06:24:36 -0800 (PST) X-Received: by 2002:ad4:4e04:: with SMTP id dl4mr3023494qvb.150.1581431076378; Tue, 11 Feb 2020 06:24:36 -0800 (PST) Original-Received: from [192.168.0.106] (d-24-233-97-107.nh.cpe.atlanticbb.net. [24.233.97.107]) by smtp.gmail.com with ESMTPSA id m27sm2323581qta.21.2020.02.11.06.24.35 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Feb 2020 06:24:35 -0800 (PST) In-Reply-To: <87lfp9nr1b.fsf-97jfqw80gc6171pxa8y+qA@public.gmane.org> Content-Language: en-US X-Original-Sender: craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@linuxacademy.com header.s=google header.b=xne3tl65; spf=pass (google.com: domain of craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org designates 2607:f8b0:4864:20::f29 as permitted sender) smtp.mailfrom=craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:24424 Archived-At: This is a multi-part message in MIME format. --------------4755203022F28A7484E14B5B Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable I had trouble with the Microsoft fonts. I'd specified Arial and Courier=20 New, and I can't remember exactly what the problem was (some characters=20 not printing or some such), but was allowed to go back to NotoSans and=20 SourceCodePro, so I didn't give it another thought. On 2/11/20 9:21 AM, Joost Kremers wrote: > > On Tue, Feb 11 2020, tutiluren via pandoc-discuss wrote: >> This command WORKS (creates a PDF with the "Arial" font): >> >> =C2=A0=C2=A0=C2=A0 pandoc --pdf-engine=3Dxelatex -V pagestyle=3D"empty" = -V=20 >> mainfont=3D"Arial" -V monofont=3D"Arial" -V fontsize=3D10pt --verbose -V= =20 >> papersize=3D"A4" -V margin-top=3D"2cm" -V margin-right=3D"2cm" -V=20 >> margin-bottom=3D"2cm" -V margin-left=3D"2cm" "test.md" -o "out.pdf" >> >> This command also WORKS (creates a PDF with the "Courier New" font): >> >> =C2=A0=C2=A0=C2=A0 pandoc --pdf-engine=3Dxelatex -V pagestyle=3D"empty" = -V=20 >> mainfont=3D"Courier New" -V monofont=3D"Courier New" -V fontsize=3D10pt= =20 >> --verbose -V papersize=3D"A4" -V margin-top=3D"2cm" -V margin-right=3D"2= cm"=20 >> -V margin-bottom=3D"2cm" -V margin-left=3D"2cm" "test.md" -o "out.pdf" >> >> However, both these commands FAIL (no PDF created at all): >> >> =C2=A0=C2=A0=C2=A0 pandoc --pdf-engine=3Dxelatex -V pagestyle=3D"empty" = -V=20 >> mainfont=3D"Courier" -V monofont=3D"Courier" -V fontsize=3D10pt --verbos= e=20 >> -V papersize=3D"A4" -V margin-top=3D"2cm" -V margin-right=3D"2cm" -V=20 >> margin-bottom=3D"2cm" -V margin-left=3D"2cm" "test.md" -o "out.pdf" >> >> =C2=A0=C2=A0=C2=A0 pandoc --pdf-engine=3Dxelatex -V pagestyle=3D"empty" = -V=20 >> mainfont=3D"Courier Standard" -V monofont=3D"Courier Standard" -V=20 >> fontsize=3D10pt --verbose -V papersize=3D"A4" -V margin-top=3D"2cm" -V= =20 >> margin-right=3D"2cm" -V margin-bottom=3D"2cm" -V margin-left=3D"2cm"=20 >> "test.md" -o "out.pdf" >> >> From the massive dump of output (containing lots of private paths and=20 >> stuff), I was able to extract out these clues: >> >> =C2=A0=C2=A0=C2=A0 xdvipdfmx:fatal: This font using the "seac" command f= or accented=20 >> characters... >> =C2=A0=C2=A0=C2=A0 No output PDF file written. >> >> What does it mean? What exactly is wrong? In Windows' font dir, there=20 >> is a "Courier Standard", which, when opened, is simply called=20 >> "Courier". Both of those strings result in the nonsensical error. > > DuckDuckGo is your friend. :-) The info I'm finding on the net is that=20 > this indicates the font you're using is a Postscript Type 1 font,=20 > which XeTeX doesn't fully support. It should work if you use is a TTF=20 > or an OTF font. (The file name should have a `.ttf` or `.otf` file=20 > extension. Type 1 fonts will have `.pfb`, `.pfm` or `.afm`, according=20 > to Wikipedia.) > > Note that the name under which a font is known to the system (and=20 > under which XeLaTeX would search for it) is not necessarily identical=20 > to the file name of the font on disk. The Windows control panel should=20 > have an option to view the fonts installed on your system. (Just=20 > quoting what I read online here. I can't check myself because I don't=20 > have access to Windows.) > > HTH > --=20 Learn by Doing with Linux Academy Multicloud Training=20 *#1 Learn-by-Doing Multicloud Training Platform* =09 =09 =09 *Craig Parker* Technical Writer Schedule a Meeting or Call 125 Bear Creek Parkway. Keller. Texas 76248 LinuxAcademy.com Learn faster and deeper with REAL Hands-On Labs.=20 =C2=A9 Linux Academy, 2019. All Rights Reserved. Pinehead=C2=AE and the Linux Academy Logo=C2=AE are registered trademarks o= f Linux=20 Academy in the U.S. and other countries. Linux=C2=AE is a registered=20 trademark of Linus Torvalds in the U.S. and other countries. --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/580978a3-ebcb-429d-266e-4c825c61badb%40linuxacademy.com. --------------4755203022F28A7484E14B5B Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

I had trouble with the Microsoft fonts. I'd specified Arial and Courier New, and I can't remember exactly what the problem was (some characters not printing or some such), but was allowed to go back to NotoSans and SourceCodePro, so I didn't give it another thought.

On 2/11/20 9:21 AM, Joost Kremers wrote:

On Tue, Feb 11 2020, tutiluren via pandoc-discuss wrote:
This command WORKS (creates a PDF with the "Arial" font):

=C2=A0=C2=A0=C2=A0 pandoc --pdf-engine=3Dxelatex -V pagestyle=3D"em= pty" -V =C2=A0=C2=A0=C2=A0 mainfont=3D"Arial" -V monofont=3D"Arial" -V fontsize=3D10pt =C2=A0= =C2=A0=C2=A0 --verbose -V papersize=3D"A4" -V margin-top=3D"2cm" -V =C2=A0=C2=A0= =C2=A0 margin-right=3D"2cm" -V margin-bottom=3D"2cm" -V =C2=A0=C2=A0=C2=A0 margin-left=3D"2cm" "test.md" -o "out.pdf"

This command also WORKS (creates a PDF with the "Courier New" font):

=C2=A0=C2=A0=C2=A0 pandoc --pdf-engine=3Dxelatex -V pagestyle=3D"em= pty" -V =C2=A0=C2=A0=C2=A0 mainfont=3D"Courier New" -V monofont=3D"Courier New" -V =C2=A0=C2= =A0=C2=A0 fontsize=3D10pt --verbose -V papersize=3D"A4" -V =C2=A0=C2=A0=C2=A0 margin-top=3D"2cm" -V margin-right=3D"2cm" -V =C2=A0=C2=A0=C2=A0 margin-bottom=3D"2cm" -V margin-left=3D"2cm" "test.md" -o =C2=A0=C2= =A0=C2=A0 "out.pdf"

However, both these commands FAIL (no PDF created at all):

=C2=A0=C2=A0=C2=A0 pandoc --pdf-engine=3Dxelatex -V pagestyle=3D"em= pty" -V =C2=A0=C2=A0=C2=A0 mainfont=3D"Courier" -V monofont=3D"Courier" -V fontsize=3D10pt =C2= =A0=C2=A0=C2=A0 --verbose -V papersize=3D"A4" -V margin-top=3D"2cm" -V =C2=A0=C2=A0= =C2=A0 margin-right=3D"2cm" -V margin-bottom=3D"2cm" -V =C2=A0=C2=A0=C2=A0 margin-left=3D"2cm" "test.md" -o "out.pdf"

=C2=A0=C2=A0=C2=A0 pandoc --pdf-engine=3Dxelatex -V pagestyle=3D"em= pty" -V =C2=A0=C2=A0=C2=A0 mainfont=3D"Courier Standard" -V monofont=3D"Courier Standard" =C2= =A0=C2=A0=C2=A0 -V fontsize=3D10pt --verbose -V papersize=3D"A4" -V =C2=A0=C2=A0=C2= =A0 margin-top=3D"2cm" -V margin-right=3D"2cm" -V =C2=A0=C2=A0=C2=A0 margin-bottom=3D"2cm" -V margin-left=3D"2cm" "test.md" -o =C2=A0=C2= =A0=C2=A0 "out.pdf"

From the massive dump of output (containing lots of private paths and stuff), I was able to extract out these clues:

=C2=A0=C2=A0=C2=A0 xdvipdfmx:fatal: This font using the "seac" comm= and for =C2=A0=C2=A0=C2=A0 accented characters...
=C2=A0=C2=A0=C2=A0 No output PDF file written.

What does it mean? What exactly is wrong? In Windows' font dir, there is a "Courier Standard", which, when opened, is simply called "Courier". Both of those strings result in the nonsensical error.

DuckDuckGo is your friend. :-) The info I'm finding on the net is that this indicates the font you're using is a Postscript Type 1 font, which XeTeX doesn't fully support. It should work if you use is a TTF or an OTF font. (The file name should have a `.ttf` or `.otf` file extension. Type 1 fonts will have `.pfb`, `.pfm` or `.afm`, according to Wikipedia.)

Note that the name under which a font is known to the system (and under which XeLaTeX would search for it) is not necessarily identical to the file name of the font on disk. The Windows control panel should have an option to view the fonts installed on your system. (Just quoting what I read online here. I can't check myself because I don't have access to Windows.)

HTH

--
3D"Learn

#1 Learn-by-Doing Multicloud Training Platform



Craig Parker
Technical Writer
Schedule a Meeting or Call<= /a>


125 Bear Creek Parkway. Keller. Texas 76248

LinuxAcademy.com
3D"Learn



=C2=A9 Linux Academy, 2019. All Right= s Reserved.
Pinehead=C2=AE and the Linux Academy Logo=C2=AE are registered trad= emarks of Linux Academy in the U.S. and other countries. Linux=C2=AE is a registered trademark of Linus Torvalds in the U.S. and other countries.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/580978a3-ebcb-429d-266e-4c825c61badb%40linuxacademy.co= m.
--------------4755203022F28A7484E14B5B--