From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/109845 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T. Kurt Bond" Newsgroups: gmane.comp.tex.context Subject: Confusion with fonts Date: Sun, 6 Dec 2020 07:03:24 -0500 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8676167171878809879==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30469"; mail-complaints-to="usenet@ciao.gmane.io" To: context mailing list Original-X-From: ntg-context-bounces@ntg.nl Sun Dec 06 13:04:00 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1klsli-0007m5-9O for gctc-ntg-context-518@m.gmane-mx.org; Sun, 06 Dec 2020 13:03:58 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 88EEC1AA434; Sun, 6 Dec 2020 13:03:40 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4Tr4-Z_SffVd; Sun, 6 Dec 2020 13:03:39 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B4C961AAAF1; Sun, 6 Dec 2020 13:03:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 47D841AA434 for ; Sun, 6 Dec 2020 13:03:38 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jEVT4YnC9PRV for ; Sun, 6 Dec 2020 13:03:37 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.170; helo=mail-il1-f170.google.com; envelope-from=tkurtbond@gmail.com; receiver= Original-Received: from mail-il1-f170.google.com (mail-il1-f170.google.com [209.85.166.170]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 47B1C1A97F5 for ; Sun, 6 Dec 2020 13:03:37 +0100 (CET) Original-Received: by mail-il1-f170.google.com with SMTP id p5so5823008ilm.12 for ; Sun, 06 Dec 2020 04:03:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=cIxnWTsYmaZsR6G2Ib9Yz/cdNUygYhBOzjmFBoPYTVg=; b=bBQHkWmZR6pQ+akS5d+YDcLTTq+P0t+LRYtwUew5wnGuRKJq47i9DzKO05AMd+1I5z S+rDOAAkKzAZquXLpA7yJAcUTjNcjLx1l116G1d1+QcGGwfCxrWgmVRa62cP2quzuq3d RejPT2sSItkbOIVKnNOHyM59bMUUvQqN24FX+uGGxLsUXJGip1aGcrknus68JlrBA8Mh /CTGhPn45/H1RfOnEQLhhfUdHOdANwDncljasEFO2x+pvYSKioBZUfoX4b2w0mfoxaKP LdNZeY3WuubN6v/AOxWK3rhBjXGmLr6S6lniT1EPZu/ntvgjftuTtcNIiCmA3XsolsnI IZEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=cIxnWTsYmaZsR6G2Ib9Yz/cdNUygYhBOzjmFBoPYTVg=; b=HK7tWP7RCfaEvSRyS5UMEvCWqbr3/Qgw6ge5ShQA/R0knk0aaAWcPOJX1th6XTOJEi M1SzWkMfiSWrPvCBfn2FwfdiSNsnGJE5TLx4XGyJYDVYSbLtog9yU457dW7x89ML8OsT Yg8iVDoKr+iBw9B1bvcFyrpkhAVUDiQbsGVeloEVHdG5mPcxA+hBEOT+UC4B4mTlob3+ n0L5Vbk11lSu5jboYQJdeB2B0t95wtxniw9w7XYZy6rbJh10dqr06goxnUe+7ub3ru17 5jRaOLFIPxZjK1NdYfcfljxXzAL+w0tSiTgXH/EGcnBedt3xhjoaH639g6fe4c7cDKIn C7Fg== X-Gm-Message-State: AOAM533B7U8RKH88KgYAFRO1Rsn7xmCPY74QyIip5+MOBHHWuj6pI6/D 9xHY1IBt/OA+ScLT2uZsDZzflmM6/mpkifMvs5HrNUeuFPhtGg== X-Google-Smtp-Source: ABdhPJwHRXwMG2E+quAfUOytiA/dWeLFd/3VE671f9pEQyujp8uJhvp60nnIXhM/KEJPER4v16p3JnqnMqQBPOXYDYo= X-Received: by 2002:a05:6e02:104b:: with SMTP id p11mr15125249ilj.241.1607256215269; Sun, 06 Dec 2020 04:03:35 -0800 (PST) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:109845 Archived-At: --===============8676167171878809879== Content-Type: multipart/alternative; boundary="000000000000c634fe05b5ca7f17" --000000000000c634fe05b5ca7f17 Content-Type: text/plain; charset="UTF-8" I've got a small ConTeXt source file, that is a minimization of a file generated by the the ConTeXt output of pandoc using pandoc features to set the main font to ebgaramond: \definefallbackfamily[mainface][rm][CMU Serif][preset=range:greek, force=yes] \definefontfamily[mainface][rm][ebgaramond] \definefontfamily[mainface][mm][Latin Modern Math] \definefontfamily[mainface][ss][Latin Modern Sans] \definefontfamily[mainface][tt][Latin Modern Typewriter][features=none] \setupbodyfont[mainface] \starttext Is this text in Pagella? \stoptext When I run it through context it works and produces output that uses the EBGaramond font. The following also work: antykwapoltawskiego, asana, cambria, charter, ebgaramond, gentium, inconsolata, iwona, kurier, lato, punknova, stix, and xits. But other things, like palatino and pagella and dejavu. Those end up using Latin Modern Roman. I realize I don't understand ConTeXt's font handling and typescripts very well, could someone explain why some of those things work, and others don't? I'll note that pandoc generates this because it lets users of pandoc specify different fonts for the main body font, the math font, the sans font, and the mono font. Can anybody suggest a different way of doing that, which works more often or more simply? -- T. Kurt Bond, tkurtbond@gmail.com, https://tkurtbond.github.io --000000000000c634fe05b5ca7f17 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've got a small ConTeXt source file, that is a minimi= zation=C2=A0of a file generated=C2=A0by the the ConTeXt output of pandoc us= ing pandoc features to set the main font to ebgaramond:

\definefallbackfamily[mainface][rm][CMU Serif][preset=3Drang= e:greek, force=3Dyes]
\definefont= family[mainface][rm][ebgaramond]
= \definefontfamily[mainface][mm][Latin Modern Math]
\definefontfamily[mainface][ss][Latin Modern Sans]=
\definefontfamily[mainface][tt][Latin M= odern Typewriter][features=3Dnone]
\setupbodyfont[mainface]

\starttext

Is this t= ext in Pagella?

=
\stoptext
=
When I run it through context it works and produces output t= hat uses the EBGaramond font.=C2=A0 The following also work:=C2=A0antykwapo= ltawskiego, asana, cambria, charter, ebgaramond, gentium, inconsolata, iwon= a, kurier, lato, punknova, stix, and xits.=C2=A0 But other things, like pal= atino and pagella and dejavu.=C2=A0 Those end up using Latin Modern Roman.<= br>

I realize I don't understand ConTeXt's= font handling and typescripts very well, could someone explain why some of= those things work, and others don't?

I'll= note that pandoc generates this because it lets users of pandoc specify di= fferent fonts for the main body font, the math font, the sans font, and the= mono font.

Can anybody suggest a different way of= doing that, which works more often or more simply?
--
--000000000000c634fe05b5ca7f17-- --===============8676167171878809879== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============8676167171878809879==--