From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/96810 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Combo fonts in MKIV Date: Tue, 15 Nov 2016 14:34:43 +0100 Message-ID: <582B0EF3.8090206@gmail.com> References: <407e4271-dc95-804e-f167-228b71992a78@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5150555232907457035==" X-Trace: blaine.gmane.org 1479216933 3588 195.159.176.226 (15 Nov 2016 13:35:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 15 Nov 2016 13:35:33 +0000 (UTC) User-Agent: Postbox 5.0.5 (Macintosh/20161020) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 15 14:35:25 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c6dtQ-0007oU-LP for gctc-ntg-context-518@m.gmane.org; Tue, 15 Nov 2016 14:35:20 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 710051E4E6; Tue, 15 Nov 2016 14:34:58 +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 SjB1US-Lv9Kj; Tue, 15 Nov 2016 14:34:57 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 5F0CC1E4E4; Tue, 15 Nov 2016 14:34:57 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 426211E4E2 for ; Tue, 15 Nov 2016 14:34:56 +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 2Hj3ppmsz2Dy for ; Tue, 15 Nov 2016 14:34:55 +0100 (CET) Original-Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 807211E4E1 for ; Tue, 15 Nov 2016 14:34:45 +0100 (CET) Original-Received: by mail-wm0-f49.google.com with SMTP id g23so167489536wme.1 for ; Tue, 15 Nov 2016 05:34:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=y62MMGVzSNYR8SZ/cvzSXQsoHBcXSAgld1zWA5k28mY=; b=PGQwhM5E9+pcVFhhKtoaUzctaqjP9y8ZWwBIBTdujXlE8Fm36BdO1xTHOm8/sflne4 huRqVHB38FvYoecFjPs2E9bT5kLjJvKiOlM8uUhhgB7HQA5cdeJzoQ0MiNxbBgputwqf Q2lW+32uUK4r9wP46KNSb16kWbeqy1R4Qramx9l8iuAi5jniSQiOM7OGFW+rEJZWPqx6 8EDVfosfXcHJRRgKOK8OKL7Urp4cUVHYMuQvhVYCYLJ6/kPhJX5KKC8LGz2pRrt8LADg yxwBjD6lNHVyZ51f5r7Suft5kRp/AHhsq6A3gNHlnrVL1vwyHV+mVvGLq2bmvkQVPpul +SCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=y62MMGVzSNYR8SZ/cvzSXQsoHBcXSAgld1zWA5k28mY=; b=UXnm0cWVCgJI3CoITJuvwurvxcUyAz7G7GSRQz5l2YRGFAu3o5dyZ1GVsMpia/R+Np G2Xbc/9AriJFShWwYBG7SojvEP14oR2g9Ay5C+dhGFu2WJHIJ1CxoWlzLJ1o4DO7qHWW ZammJCa8HhKx0RqUXzzEvJ0ywvAjfyfSGc+kheyhdmVKXo2aEY8wQfkotSJT3STydDaB ba1tVs9nIjA0/f4FpEIkj27dMNgDYVoUp1j9oTNtR2FgIeXpO/4YDLWrezh71mvYDEjT jputBI6cZOT1zHC3dW9YLjPLxPTftyzpj8eZVTvSVsRBKfk0E4k6pDtMdbYYWurAyAvz wh3w== X-Gm-Message-State: ABUngvd2rZaqY702D3fYw8AIEUtOdxYZsu04GyjdkHyxAJsUy7ijsnmp84qufARAu0oy7A== X-Received: by 10.28.135.5 with SMTP id j5mr1043422wmd.3.1479216884727; Tue, 15 Nov 2016 05:34:44 -0800 (PST) Original-Received: from keima.localdomain (x2f263b7.dyn.telefonica.de. [2.242.99.183]) by smtp.gmail.com with ESMTPSA id l67sm4384895wmf.0.2016.11.15.05.34.43 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 15 Nov 2016 05:34:43 -0800 (PST) In-Reply-To: <407e4271-dc95-804e-f167-228b71992a78@gmail.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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.org gmane.comp.tex.context:96810 Archived-At: This is a multi-part message in MIME format. --===============5150555232907457035== Content-Type: multipart/alternative; boundary="------------010600000204010102030105" This is a multi-part message in MIME format. --------------010600000204010102030105 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit > Henri Menke > 15. November 2016 um 09:47 > Dear list, > > On http://tex.stackexchange.com/a/314401/10995 I saw that LuaTeX has > support for combo fonts where one can select different fonts and > features for selected glyph ranges. Is there an interface in MKIV for > that? I couldn’t find anything in fonts-mkiv.pdf. You can use the fallback mechanism: \definefallbackfamily [mixedfont] [rm] [TeX Gyre Pagella] [tf=style:italic,range=0x61-0x7A,force=yes] \definefontfamily [mixedfont] [rm] [TeX Gyre Pagella] \setupbodyfont[mixedfont] \starttext Some Text with Capital XYabcXY \stoptext Wolfgang --------------010600000204010102030105 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
15. November 2016 um 09:47
Dear list,

On http://tex.stackexchange.com/a/314401/10995 I saw that LuaTeX has support for combo fonts where one can select different fonts and features for selected glyph ranges. Is there an interface in MKIV for that? I couldn’t find anything in fonts-mkiv.pdf.
You can use the fallback mechanism:

\definefallbackfamily [mixedfont] [rm] [TeX Gyre Pagella] [tf=style:italic,range=0x61-0x7A,force=yes]
\definefontfamily     [mixedfont] [rm] [TeX Gyre Pagella]

\setupbodyfont[mixedfont]

\starttext
Some Text with Capital XYabcXY
\stoptext

Wolfgang
--------------010600000204010102030105-- --===============5150555232907457035== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============5150555232907457035==--