From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/109343 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tommaso Gordini Newsgroups: gmane.comp.tex.context Subject: Re: Font protrusion and expansion Date: Sat, 7 Nov 2020 21:51:20 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4994456719788283689==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4754"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 07 21:51:53 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 1kbVBh-000173-HJ for gctc-ntg-context-518@m.gmane-mx.org; Sat, 07 Nov 2020 21:51:53 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 82F021AA2E8; Sat, 7 Nov 2020 21:51:36 +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 omuD6CKYlMCL; Sat, 7 Nov 2020 21:51:35 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AA1E51AA2DD; Sat, 7 Nov 2020 21:51:35 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B52681AA2D6 for ; Sat, 7 Nov 2020 21:51:34 +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 Zvq8YpuO6hjI for ; Sat, 7 Nov 2020 21:51:33 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.210.51; helo=mail-ot1-f51.google.com; envelope-from=illinguista1972@gmail.com; receiver= Original-Received: from mail-ot1-f51.google.com (mail-ot1-f51.google.com [209.85.210.51]) (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 A36F71AA2D4 for ; Sat, 7 Nov 2020 21:51:33 +0100 (CET) Original-Received: by mail-ot1-f51.google.com with SMTP id l36so4799476ota.4 for ; Sat, 07 Nov 2020 12:51:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=CuW1kLi2Np7lFbs+E2RT45mYl1r8luLdERMOiXdGpyY=; b=JG5X0b41Igm0tkfLAOG9HP+nayvrUlfS091rnAL/G+8CTYmf1Bq1H6yOTK3x3/KXU5 q/OfpYsS6XsEmfZwu4QOAncu1VLylg3lL3krIFIXpQ0AltppfXL8Y8TzlCkuBvGU9/Y0 WO2IKYsEHsB8+KQbXGfU2Hq33Uv5jwrrPGe4MYEakYoJkazyHHuDhCyeXyaub39p+9vv a5rQd6ptgJKVlf55kc+xDMxA07U+4b2m8o6Xc/D2/mHeMkgMyNsWUDYaNfUsibXROIxC G6JvdpNACd+smqjciFsdh+rVyeTmUSlOTkMFYO4FzuN85yy7z1QywaLrdYVYyjrbjD6O f4tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=CuW1kLi2Np7lFbs+E2RT45mYl1r8luLdERMOiXdGpyY=; b=lrh15C9RPO9dgbWyws3XT2Ci1irxrgmEDXoxlyeKZbs8iDJ/oEqBXfxUJpWCbDyxTI 0G/2AQi6uRnOmZ33U1uL+1houJ7fF0NvZoj6pvhDHOj+mv+b9IG82DHv7lYIVvmtX8RG 4C+oxmNHLsyg9Tsf4Mu9a5VKyDNf6Nu2CX+2aRHEJX+EKov+kUlilRaKMdraV0VncslY lEqjn46vB893w3qRhWxNdqTWCTUh38bhK7CDKVaeOvv7HfSSKRVUKBRKif3vcwUPyFF3 TL5xmm961yzmm2sc4wLLwx/uJd9HK5EfdJHbNKFlI291zA3W5fkWClQ2IuaBJHJuFGkZ Ed7w== X-Gm-Message-State: AOAM532NgHJvcArgfMpFkyubega0v7oZmyJMtQArOJv7FBT3BLbbE4HG rDdmH5oKh5cDxuBgaxbcszkq/kYf+nZe99FKLHlctSSg X-Google-Smtp-Source: ABdhPJzChnQO+AeORwhstn7spHUcouvxhh4n/J9FWGcPAbLESHUtew/HmkgqEVV1T0EOcoYF7LLq+PiqD4fSErjuKGA= X-Received: by 2002:a9d:7599:: with SMTP id s25mr5052879otk.6.1604782291731; Sat, 07 Nov 2020 12:51:31 -0800 (PST) In-Reply-To: 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:109343 Archived-At: --===============4994456719788283689== Content-Type: multipart/alternative; boundary="00000000000070c7e005b38a7e08" --00000000000070c7e005b38a7e08 Content-Type: text/plain; charset="UTF-8" Thanks Hans and thanks Pablo. So, \usetypescript is not needed? Tommaso Il sab 7 nov 2020, 21:24 Pablo Rodriguez ha scritto: > On 11/7/20 7:54 PM, Tommaso Gordini wrote: > > Hello to all. > > > > I am writing to you just to know if the following code, with which I > > would like to activate the protrusion and expansion of characters in my > > document, is correct. Is the command order okay? > > > > If I wanted to use another font, are there other things to write? > > Hi Tommaso, > > in the next sample, replace TeX Gyre Pagella with the font family name > and it will work fine: > > \definefontfeature > [default] > [default] > [expansion=quality,protrusion=quality] > \definefontfamily[mainface][rm][TeX Gyre Pagella] > \setupbodyfont[mainface] > \setupalign[hz,hanging] > \starttext > \input{zapf} > \stoptext > > Pablo > -- > http://www.ousia.tk > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___________________________________________________________________________________ > --00000000000070c7e005b38a7e08 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks Hans and thanks Pablo.=C2=A0 So, \usetypescript is= not needed?

Tommaso

Il s= ab 7 nov 2020, 21:24 Pablo Rodriguez <oi= nos@gmx.es> ha scritto:
On 1= 1/7/20 7:54 PM, Tommaso Gordini wrote:
> Hello to all.
>
> I am writing to you just to know if the following code, with which I > would like to activate the protrusion and expansion of characters in m= y
> document, is correct. Is the command order okay?
>
> If I wanted to use another font, are there other things to write?

Hi Tommaso,

in the next sample, replace TeX Gyre Pagella with the font family name
and it will work fine:

=C2=A0 \definefontfeature
=C2=A0 =C2=A0 [default]
=C2=A0 =C2=A0 [default]
=C2=A0 =C2=A0 [expansion=3Dquality,protrusion=3Dquality]
=C2=A0 \definefontfamily[mainface][rm][TeX Gyre Pagella]
=C2=A0 \setupbodyfont[mainface]
=C2=A0 \setupalign[hz,hanging]
=C2=A0 \starttext
=C2=A0 \input{zapf}
=C2=A0 \stoptext

Pablo
--
http://www.ousia.tk
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / http://= www.ntg.nl/mailman/listinfo/ntg-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://= context.aanhet.net
archive=C2=A0 : https://bitbucket.org/ph= g/context-mirror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--00000000000070c7e005b38a7e08-- --===============4994456719788283689== 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== --===============4994456719788283689==--