From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83130 Path: news.gmane.org!not-for-mail From: Andres Conrado Montoya Newsgroups: gmane.comp.tex.context Subject: Auto selecting optical sizes for a font Date: Fri, 21 Jun 2013 18:43:09 -0500 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1371858245 31927 80.91.229.3 (21 Jun 2013 23:44:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Jun 2013 23:44:05 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Jun 22 01:44:07 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UqAzv-0008Hu-CA for gctc-ntg-context-518@m.gmane.org; Sat, 22 Jun 2013 01:44:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6EB31101F1; Sat, 22 Jun 2013 01:44:06 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id BLX8jait+zNV; Sat, 22 Jun 2013 01:44:04 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 6151C101E6; Sat, 22 Jun 2013 01:44:04 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E3373101E6 for ; Sat, 22 Jun 2013 01:44:02 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id dPNfcCxo4--G for ; Sat, 22 Jun 2013 01:44:01 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 5266F101E0 for ; Sat, 22 Jun 2013 01:43:51 +0200 (CEST) Original-Received: from mail-la0-x22e.google.com (mail-la0-x22e.google.com [IPv6:2a00:1450:4010:c03::22e]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r5LNhoAl018155 for ; Sat, 22 Jun 2013 01:43:50 +0200 Original-Received: by mail-la0-f46.google.com with SMTP id eg20so8158952lab.33 for ; Fri, 21 Jun 2013 16:43:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=21+P7htLU+J7yO1XmruidXsPSCWhpRy9qsqxXAx1fzs=; b=XEub0p1zsiV7TIr0JHInI2RRvAbR+BjMAwOdIdpTawcCpcm+ANa4Cf2UY2G6gfaiLG vNNrnu8z/CnX3ursjrg7SmosIp8mmq/OZIzxcEWhy0ucnsI76+hEXugT4nHGC5UbMC+D 7YJb3RRhsdrG+QUuO6Y1/qLpTDNJF1k0DSLx2g0w3PDrjPxVjBQ6KKzuADXSIgAFtkoC +4wPeuYuaM8neDly26CUzkSJUs2dBdSjtTTycRHX18y8qGA/x9AXcnRey605b0Qc9ELw Fppb92ClWq6TyNON+Lq0iRSFSdi8POmM+5GFKQ5W6biucDgZ+xf6kDL9MXc/CesA/oln 7THA== X-Received: by 10.152.22.232 with SMTP id h8mr6828455laf.37.1371858230300; Fri, 21 Jun 2013 16:43:50 -0700 (PDT) Original-Received: by 10.112.69.194 with HTTP; Fri, 21 Jun 2013 16:43:09 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4010:c03::22e; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03JPbHOiF - 9cb0c7633cad - 20130622 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:83130 Archived-At: Hello friends. I'm trying to design a book using the typescript you can find at the end of this message. I'm using the beautiful EBGaramond fonts from Georg Duffner (http://www.georgduffner.at/ebgaramond/). This font provides optical sizes to be used in different sizes (named "12" for 10.1pt or more, and "8" for 10 or less. These fonts automatically work as expected in latex, thanks to a recent package included in CTAN (ebgaramond package), selecting the correct font for the appropriate size. However, the typescript I'm using selects the "8" size for everything, without taking the type size into consideration. Is there any way to make ConTeXt do this automatic selection of fonts regarding of type size? I'm using version 2013.06.10 22:51. Here is my example: %%%%%%%%%%%%%%%%%%%%%%%%%%% \enableregime[utf-8] \mainlanguage[es] \setupcapitals[sc=yes] \definefontfeature[default][default] [mode=node,calt=yes,liga=yes,dlig=yes,hlig=yes,ccmp=yes,kern=yes,mark=yes,mkmk=yes,onum=yes,pnum=yes,salt=yes,size=yes,expansion=quality,protrusion=quality] \definefontfeature[smallcaps][smallcaps] [mode=node,script=latn,smcp=yes,c2sc=yes,calt=yes,liga=yes,dlig=yes,hlig=yes,ccmp=yes,kern=yes,mark=yes,mkmk=yes,onum=yes,pnum=yes,salt=yes,size=yes,expansion=quality,protrusion=quality] \starttypescript[serif][ebgaramond] \setups[font:fallback:serif] \definefontsynonym [EBGaramond-Regular] [name:EBGaramond-Regular] \definefontsynonym [EBGaramond-Italic] [name:EBGaramond-Italic] \stoptypescript \starttypescript[serif][ebgaramond] \definefontsynonym [Serif] [EBGaramond-Regular] [features=default] \definefontsynonym [SerifItalic] [EBGaramond-Italic] [features=default] \definefontsynonym [SerifCaps] [Serif] [features=smallcaps] \stoptypescript \definetypeface[ebg][rm][serif][ebgaramond][default] \setupbodyfont[ebg,12pt] \setupbodyfontenvironment[default][em=italic] \setupinterlinespace[line=3.2ex] \setupalign[lesshyphenation,hz,hanging] \doublehyphendemerits=30000 \setupspacing[packed] \starttext \showframe \showgrid \input tufte \stoptext %%%%%%%%%%%%%%%%%%%%%%%%%%% Thank so much for all your good work and help. :) ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________