From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/24423 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Joost Kremers 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 15:21:20 +0100 Message-ID: <87lfp9nr1b.fsf@fastmail.fm> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="19438"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.3.7; emacs 26.3 To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCS7B5O6XUOBBZPQRLZAKGQETUUXNPI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Feb 11 15:21:29 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-io1-f62.google.com ([209.85.166.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j1WPo-0004w2-H8 for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 11 Feb 2020 15:21:28 +0100 Original-Received: by mail-io1-f62.google.com with SMTP id z201sf6994606iof.8 for ; Tue, 11 Feb 2020 06:21:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1581430887; cv=pass; d=google.com; s=arc-20160816; b=Sc+LGBCDBJS27ygFPuyWaW7yNJZXeWrlBRnmFvKB9se6dJ2RgPOnwL8VF6UGXJ0VHW SARApLRQUlOfdZWJ3HTNAvPa57ybDzOmCxiSDL8X/mD50bRCn2zwToq2S5kGSLcxjHvs gJWI5R8VIQpSoL8EUDDhRqDAHzf5/ieh9OXGEFrJPQ+vXVffwKYA+eronfN8OTNnuT7Y hWGdfmEX0VN3hRnhTnhSBM1lLE9rRcZLbQ+rSxaC27qiFyyOZaixMPvb6PwF/3wLai9U Mmgs50dMkjzOxIi27u+C6Ry97xlN4pmW+01pZoK1BvUQC9NkzItyvbfW2CIfiF41EB/U b77w== 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:mime-version:message-id :date:in-reply-to:subject:to:from:user-agent:references:sender :dkim-signature; bh=YjaW3/Crm72ACHuNsHOAwHJFylCof/2BsD6bHlfrDsA=; b=MJjYlVuBirTFK6RN8hz/0zVywlSnMr6Qj76HOqtvFyOiU91R1isVjWmtM3BJrlTbrn kVVkZMVa9JV9hlMmUZN8qM/lG8Nj0tk1+gH15RoblYKGnj6+zdUzUhJc5w0yBWwDzPeU sGJqT6OkVB8cSvLFg7sjiDMd6CM6nOR9XIndu9AxpogTOyPigPUsCuALiXNRX4Iohuhq OcY6oLS+mLl0Xw5QnrmDqvi/wHopCz89KT9RUcyQ0CA/1yCV5Hrx61xzI5P+a6aIxjkI LlAToqjmMnZVrLsNklzkZyd0izio1/8X6XiyOLeV3MKkdpA7iVvV2KKi1+9EGaiNp6Aw pbQw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@fastmail.fm header.s=fm2 header.b=jK1KYBxQ; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=G3kd1u+6; spf=pass (google.com: domain of joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 66.111.4.28 as permitted sender) smtp.mailfrom=joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.fm DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:references:user-agent:from:to:subject:in-reply-to:date :message-id:mime-version: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=YjaW3/Crm72ACHuNsHOAwHJFylCof/2BsD6bHlfrDsA=; b=J4J2XSG6Je5guCL0CqQ/Ch907nYI8w0YbX0X9FA5nB87IOwXrvF/3mO1Ax1Uq5FOl3 Fm+GFpPDnAXMuwUrunTl6oDups+lHrx9OTrgC0PQ7zEN2tW7UAXQJeHeqcAyOH7ijUiE ISa8jHqTvRkYgwXxZdkwGnMfvr+IDJIXny7HltJqjvvYjVemQCVOQBuKySAeI6SaIpfw wH9Rau8S7+tIJt/q91MpXP45j6WbrLx4ELW1ymeY+7JbmgSqaJ40n98eMlbUKggac+XO PLnwXg+3GQiFSbiuLXOm2OtYM1CDfsl8eFmjG6FyLi5a3Kb38rjYdQT0L0jUMxMO6waq 9TLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:references:user-agent:from:to:subject :in-reply-to:date:message-id:mime-version: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=YjaW3/Crm72ACHuNsHOAwHJFylCof/2BsD6bHlfrDsA=; b=irSYQeWa4WU2YqVoQzN3cAtI+v7RgXq3VSyyKZioAAWFsUOwydddubQCILY1qVPK/B Fkvk82I8ILEqYFTNn3NQNHDzCh/rj/OvHLIGREAC2UUH2GOF1zMS94sgESWftOKkXO4v YzAG3G3HiRTKOxxINREPQdde01KMqIysI/XihfNp6v3wGgNg0jOg9hJLVnTR7JJ+9C4u kDHaJn5IevrbsPDmrwW5TloTbXEKeMcfem9PFdMq6GPr8uMVRxlRspNFUegfsMehS8/V SykHsFg3mE0+DDMPJqSTBBZULi9SjI2YjnJuZA7QUkdVNc+XHriQxMHHxtnPJw4h1nPn QYrw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAUHATkAz6XwzG9ldS1AEEoJEMvYSvwJuP1zj1pKSknGerp1Bv6D jPG86yqZCG/2jTcjVoyN5nM= X-Google-Smtp-Source: APXvYqxTEYX4ERzmesFtRgdWAJHpyA7iOXeXSCxqqImLNr97kIi7/Z4byVAvqtRz+AF/+czJj+9ucg== X-Received: by 2002:a92:9a57:: with SMTP id t84mr6776264ili.290.1581430887503; Tue, 11 Feb 2020 06:21:27 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a5d:85cf:: with SMTP id e15ls2192744ios.7.gmail; Tue, 11 Feb 2020 06:21:25 -0800 (PST) X-Received: by 2002:a5e:8214:: with SMTP id l20mr14192609iom.168.1581430885028; Tue, 11 Feb 2020 06:21:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581430885; cv=none; d=google.com; s=arc-20160816; b=rybClaEzWT4rWb4wSArruf9FowPEBdWMNPThYvNLGQ+rjB44XxVk9Zbtt4kHXXF7pq glIQddx/yLpVYElCDD5gwzuw6F/AMtSg2ctm0fUPlIiQgv+dJDDv3pom/AztgwJM2dw6 +Dbj8XDVvSUVlqRmmPSP08w+39waD3YPgsXPEOtf0ldy/AS5iv+cE+fQYnGKceRtbTUy Q7AOa9KPOFWkUZ/CEja/VUiiLF8pHu9zV4wSpKAyuvGddCA7+wx4h2++65Kjy5hCCNLn ejQW7IPKqM4tHuBVb78cJtAZcWjxLZSboH1xjDTSvTiCusD7nNXnXK6J3GNHJQYZReLW +uJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:in-reply-to:subject:to:from:user-agent :references:dkim-signature:dkim-signature; bh=LwFScT3ytRK1GgIij7CMFF+7aYJ4EtGJrj2sX5a5tps=; b=rbVjzT1wLwS0JNdaby6XbYlvICo0E2dEXIJ7EFzxbjiOqF2k9/2ogdyy9ZXJ8Jz4wf E19JmpEz5nuNTsGVk/9KirDJN6dlBXfIwAzmMwJyajg7kaIGvaOtUyfCMZTqsGabQH6g ikPUo0oAJY84HK5splIEU1vLcuzm1yyjuALDz9MYMWgSMMnjGFM3pARg3i8kUkeCBouO iZXNg0g4N052eztoi4rn0BP8PLVwa//AUjshZ2OCgbGmP5DXxyCbvcm/IxnbLRTJMA8t 4Q+cmLVnr2mHa+mOal8gJ2X4RUR8wnZ6+GUqLnloLAA+P4TFBEiNzJlEOknTYsqmnQC8 TeIg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@fastmail.fm header.s=fm2 header.b=jK1KYBxQ; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=G3kd1u+6; spf=pass (google.com: domain of joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 66.111.4.28 as permitted sender) smtp.mailfrom=joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.fm Original-Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com. [66.111.4.28]) by gmr-mx.google.com with ESMTPS id i4si169901ioi.1.2020.02.11.06.21.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Feb 2020 06:21:25 -0800 (PST) Received-SPF: pass (google.com: domain of joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 66.111.4.28 as permitted sender) client-ip=66.111.4.28; Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 0B60920C20 for ; Tue, 11 Feb 2020 09:21:24 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 11 Feb 2020 09:21:24 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrieefgdeigecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfhgfhffvufgjfffkgggtsehttdertd dtredtnecuhfhrohhmpeflohhoshhtucfmrhgvmhgvrhhsuceojhhoohhsthhkrhgvmhgv rhhssehfrghsthhmrghilhdrfhhmqeenucfkphepleehrdeltddrvddtuddrheegnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhhoohhsthhk rhgvmhgvrhhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: from Swift.fastmail.com (unknown [95.90.201.54]) by mail.messagingengine.com (Postfix) with ESMTPA id 8362F328005D for ; Tue, 11 Feb 2020 09:21:23 -0500 (EST) In-reply-to: X-Original-Sender: joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@fastmail.fm header.s=fm2 header.b=jK1KYBxQ; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=G3kd1u+6; spf=pass (google.com: domain of joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 66.111.4.28 as permitted sender) smtp.mailfrom=joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.fm 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:24423 Archived-At: On Tue, Feb 11 2020, tutiluren via pandoc-discuss wrote: > This command WORKS (creates a PDF with the "Arial" font): > > pandoc --pdf-engine=xelatex -V pagestyle="empty" -V > mainfont="Arial" -V monofont="Arial" -V fontsize=10pt > --verbose -V papersize="A4" -V margin-top="2cm" -V > margin-right="2cm" -V margin-bottom="2cm" -V > margin-left="2cm" "test.md" -o "out.pdf" > > This command also WORKS (creates a PDF with the "Courier New" > font): > > pandoc --pdf-engine=xelatex -V pagestyle="empty" -V > mainfont="Courier New" -V monofont="Courier New" -V > fontsize=10pt --verbose -V papersize="A4" -V > margin-top="2cm" -V margin-right="2cm" -V > margin-bottom="2cm" -V margin-left="2cm" "test.md" -o > "out.pdf" > > However, both these commands FAIL (no PDF created at all): > > pandoc --pdf-engine=xelatex -V pagestyle="empty" -V > mainfont="Courier" -V monofont="Courier" -V fontsize=10pt > --verbose -V papersize="A4" -V margin-top="2cm" -V > margin-right="2cm" -V margin-bottom="2cm" -V > margin-left="2cm" "test.md" -o "out.pdf" > > pandoc --pdf-engine=xelatex -V pagestyle="empty" -V > mainfont="Courier Standard" -V monofont="Courier Standard" > -V fontsize=10pt --verbose -V papersize="A4" -V > margin-top="2cm" -V margin-right="2cm" -V > margin-bottom="2cm" -V margin-left="2cm" "test.md" -o > "out.pdf" > > From the massive dump of output (containing lots of private > paths and stuff), I was able to extract out these clues: > > xdvipdfmx:fatal: This font using the "seac" command for > accented characters... > 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 -- Joost Kremers Life has its moments