From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83350 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Different font variants (normal <> condensed, light <> regular <> bold, etc.) Date: Tue, 9 Jul 2013 17:58:41 +0200 Message-ID: <48245450-540D-44BE-8504-C5E4AC6CDCAA@gmail.com> References: <20130709132059.37f3ade4@zenlima.eu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_E47CFAC4-F9F4-4475-B68D-2DF7F74FF2CA" X-Trace: ger.gmane.org 1373385535 30711 80.91.229.3 (9 Jul 2013 15:58:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Jul 2013 15:58:55 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 09 17:58:57 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 1UwaJd-0007Us-2h for gctc-ntg-context-518@m.gmane.org; Tue, 09 Jul 2013 17:58:57 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 08FEA101E0; Tue, 9 Jul 2013 17:58:56 +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 iQQMrLe70A+g; Tue, 9 Jul 2013 17:58:54 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id E7363101E4; Tue, 9 Jul 2013 17:58:53 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0FB39101E4 for ; Tue, 9 Jul 2013 17:58:53 +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 MQQNhUNLsnJ4 for ; Tue, 9 Jul 2013 17:58:52 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 04222101E0 for ; Tue, 9 Jul 2013 17:58:41 +0200 (CEST) Original-Received: from mail-ea0-x232.google.com (mail-ea0-x232.google.com [IPv6:2a00:1450:4013:c01::232]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r69FweMa018296 for ; Tue, 9 Jul 2013 17:58:41 +0200 Original-Received: by mail-ea0-f178.google.com with SMTP id l15so3843430eak.37 for ; Tue, 09 Jul 2013 08:58:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to:x-mailer; bh=BtdJn4WU0acbBnrEnlbAtaEsq8C9txUfBlCKNb7rU4c=; b=brLPrpBugDLlvQbI6sVHmeZTXfAcXijIXd0BtdQBHggjaIhOMG/sBhEyorE/ImYm+W ol0eb37Eu4JW6tdK2BW1aMEfCKa9lclKYJ7tjstnydzM/fT8/n1UJXXRniW8rUcCtz+Y y/mj/bUB4miD8/XjpBUqhLvMdz1SY+BIZWBbZ7ZXL3J47Go3/OrLC9cN+uyBJcKZMo8V mCWwKFDdR1EzbMMeXrC+/9T1XnpGedlzQPzN0+C+DLzdJk1YcptW73Cw4P8UXvRHEI2+ 1+VohVy66VsGpXDomDvYCJRjuK4EF3cUeVtCm4Mj+A86N2yOcuIhFXaDIotbypiA5VJK nK7A== X-Received: by 10.15.49.9 with SMTP id i9mr30727537eew.69.1373385520855; Tue, 09 Jul 2013 08:58:40 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4dbf9f6b.pool.mediaWays.net. [77.191.159.107]) by mx.google.com with ESMTPSA id o5sm52050768eef.5.2013.07.09.08.58.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 09 Jul 2013 08:58:39 -0700 (PDT) In-Reply-To: <20130709132059.37f3ade4@zenlima.eu> X-Mailer: Apple Mail (2.1508) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c01::232; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TJWfWFSC - 0a6f1890c84e - 20130709 (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:83350 Archived-At: --Apple-Mail=_E47CFAC4-F9F4-4475-B68D-2DF7F74FF2CA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Am 09.07.2013 um 13:20 schrieb Zenlima : > Hi, >=20 > I am trying to define the different variants of the Roboto font ([1] > for sans and [2][3][4][5] for serif). >=20 > Now I am trying to define this for context but I have no idea how to > define the condensed versions (plus how to access it later). And how > do I enter and access the different weights next to regular and > bold (light, thin, heavy)? And how to define the weight > light as default (instead of regular)? I got so far: >=20 > --------8<-------------------------- > \enableregime[utf] >=20 > \definefontfeature[Latn-smallcaps][smcp=3Dyes,script=3Dlatn,kern=3Dyes] > \definefontfeature[fakeitalic][default][slant=3D.25] >=20 > = \definefontfeature[arab][mode=3Dnode,language=3Ddflt,script=3Darab,init=3D= yes,medi=3Dyes,fina=3Dyes,isol=3Dyes,liga=3Dyes,dlig=3Dyes,rlig=3Dyes,clig= =3Dyes,mark=3Dyes,mkmk=3Dyes,kern=3Dyes,curs=3Dyes] >=20 > \definefontsynonym > [arab--scheherazade--serif][name:scheherazade][features=3Darab] > \definefontsynonym[brai--6punktoj][name:6punktoj] %^1 >=20 > \starttypescript[sans][roboto] > = \definefontfallback[Sans][brai--6punktoj][0x2800-0x283f][force=3Dyes,check= =3Dno] > = \definefontfallback[Sans][arab--scheherazade--serif][0x0600-0x06ff,0x0750-= 0x077f,0xfb50-0xfdff,0xfe70-0xfefe][force=3Dyes,check=3Dno,rscale=3D1.9] > \definefontsynonym[Sans][name:robotoregular][fallbacks=3DSans] > \definefontsynonym[SansBold][name:robotobold] > \definefontsynonym[SansItalic][name:robotoitalic] > \definefontsynonym[SansSlanted][name:robotoitalic] > \definefontsynonym[SansBoldItalic][name:robotobolditalic] > \definefontsynonym[SansBoldSlanted][name:robotobolditalic] > = \definefontsynonym[SansCaps][name:robotoregular][features=3DLatn-smallcaps= ] > \stoptypescript >=20 > \starttypescript[serif][roboto]=20 > = \definefontfallback[Serif][brai--6punktoj][0x2800-0x283f][force=3Dyes,chec= k=3Dno] > = \definefontfallback[Serif][arab--scheherazade--serif][0x0600-0x06ff,0x0750= -0x077f,0xfb50-0xfdff,0xfe70-0xfefe][force=3Dyes,check=3Dno,rscale=3D1.9] > \definefontsynonym[Serif][name:robotoslabregular][fallbacks=3DSerif] > \definefontsynonym[SerifBold][name:robotoslabbold] > = \definefontsynonym[SerifItalic][name:robotoslabregular][features=3Dfakeita= lic] > = \definefontsynonym[SerifSlanted][name:robotoslabregular][features=3Dfakeit= alic] > = \definefontsynonym[SerifBoldItalic][name:robotoslabbold][features=3Dfakeit= alic] > = \definefontsynonym[SerifBoldSlanted][name:robotoslabbold][features=3Dfakei= talic] > = \definefontsynonym[SerifCaps][name:robotoslabregular][features=3DLatn-smal= lcaps]=20 > \stoptypescript >=20 > \definetypeface[fliesstext][rm][serif][roboto]=20 > \definetypeface[fliesstext][ss][sans][roboto]=20 >=20 > \setupbodyfont[fliesstext,rm,11pt] >=20 >=20 > ----8<------------------------------------------ >=20 > Any help is appreciated :-) Try the two attached files (untested): --Apple-Mail=_E47CFAC4-F9F4-4475-B68D-2DF7F74FF2CA Content-Disposition: attachment; filename=roboto-test.tex Content-Type: application/octet-stream; x-unix-mode=0644; name="roboto-test.tex" Content-Transfer-Encoding: 7bit \starttext \switchtobodyfont[roboto] \rm\input ward\par \ss\input ward \blank \switchtobodyfont[roboto-condensed] \rm\input ward\par \ss\input ward \blank \switchtobodyfont[roboto-medium] \rm\input ward\par \ss\input ward \blank \switchtobodyfont[roboto-light] \rm\input ward\par \ss\input ward \stoptext --Apple-Mail=_E47CFAC4-F9F4-4475-B68D-2DF7F74FF2CA Content-Disposition: attachment; filename=type-roboto.tex Content-Type: application/octet-stream; x-mac-type=2A2A2A2A; x-mac-creator=48647261; x-unix-mode=0644; name="type-roboto.tex" Content-Transfer-Encoding: 7bit \starttypescriptcollection [roboto] \starttypescript [sans] [roboto] \setups[font:fallback:sans] \definefontsynonym [Sans] [file:robotoregular] \definefontsynonym [SansItalic] [file:robotoitalic] \definefontsynonym [SansBold] [file:robotobold] \definefontsynonym [SansBoldItalic] [file:robotobolditalic] \stoptypescript \starttypescript [sans] [roboto-condensed] \definefontsynonym [Sans] [file:robotocondensed] \definefontsynonym [SansItalic] [file:robotocondenseditalic] \definefontsynonym [SansBold] [file:robotoboldcondensed] \definefontsynonym [SansBoldItalic] [file:robotoboldcondenseditalic] \stoptypescript \starttypescript [sans] [roboto-medium] \definefontsynonym [Sans] [file:robotomedium] \definefontsynonym [SansItalic] [file:robotomediumitalic] \definefontsynonym [SansBold] [file:robotoblack] \definefontsynonym [SansBoldItalic] [file:robotoblackitalic] \stoptypescript \starttypescript [sans] [roboto-light] \definefontsynonym [Sans] [file:robotolight] \definefontsynonym [SansItalic] [file:robotolightitalic] \definefontsynonym [SansBold] [file:robotoregular] \definefontsynonym [SansBoldItalic] [file:robotoitalic] \stoptypescript \starttypescript [serif] [roboto,roboto-condensed,roboto-medium] \definefontsynonym [Serif] [file:robotoslabregular] \definefontsynonym [SerifBold] [file:robotoslabbold] \stoptypescript \starttypescript [serif] [roboto-light] \definefontsynonym [Serif] [file:robotoslablight] \definefontsynonym [SerifBold] [file:robotoslabregular] \stoptypescript \starttypescript [roboto,roboto-condensed,roboto-medium,roboto-light] \definetypeface [\typescriptone] [rm] [serif] [\typescriptone] [default] [features=default] \definetypeface [\typescriptone] [rm] [sans] [\typescriptone] [default] [features=default] \stoptypescript \stoptypescriptcollection --Apple-Mail=_E47CFAC4-F9F4-4475-B68D-2DF7F74FF2CA Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --Apple-Mail=_E47CFAC4-F9F4-4475-B68D-2DF7F74FF2CA--