From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83349 Path: news.gmane.org!not-for-mail From: Zenlima Newsgroups: gmane.comp.tex.context Subject: Different font variants (normal <> condensed, light <> regular <> bold, etc.) Date: Tue, 9 Jul 2013 13:20:59 +0200 Message-ID: <20130709132059.37f3ade4@zenlima.eu> 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 1373369562 6281 80.91.229.3 (9 Jul 2013 11:32:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Jul 2013 11:32:42 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 09 13:32:45 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 1UwWA0-0007z9-Ue for gctc-ntg-context-518@m.gmane.org; Tue, 09 Jul 2013 13:32:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ECCB8101E0; Tue, 9 Jul 2013 13:32:43 +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 0KnaDP729xJe; Tue, 9 Jul 2013 13:32:42 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id DF211101E4; Tue, 9 Jul 2013 13:32:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B4A4D101E4 for ; Tue, 9 Jul 2013 13:32:40 +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 rjvsSRZVSmaf for ; Tue, 9 Jul 2013 13:32:39 +0200 (CEST) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id EF9D1101E0 for ; Tue, 9 Jul 2013 13:32:28 +0200 (CEST) Original-Received: from outgoing.selfhost.de (out.selfhost.de [82.98.82.95]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r69BWRfJ001857 for ; Tue, 9 Jul 2013 13:32:28 +0200 Original-Received: (qmail 23836 invoked from network); 9 Jul 2013 11:25:45 -0000 Original-Received: from unknown (HELO zenlima.eu) (post@zenlima.eu@31.18.185.12) by mailout.selfhost.de with ESMTPA; 9 Jul 2013 11:25:45 -0000 X-Bayes-Prob: 0.8279 (Score 2, tokens from: @@RPTN) X-CanIt-Geo: ip=82.98.82.95; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08JWbwrOe - d70ddefa4bed - 20130709 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:83349 Archived-At: Hi, I am trying to define the different variants of the Roboto font ([1] for sans and [2][3][4][5] for serif). 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: --------8<-------------------------- \enableregime[utf] \definefontfeature[Latn-smallcaps][smcp=yes,script=latn,kern=yes] \definefontfeature[fakeitalic][default][slant=.25] \definefontfeature[arab][mode=node,language=dflt,script=arab,init=yes,medi=yes,fina=yes,isol=yes,liga=yes,dlig=yes,rlig=yes,clig=yes,mark=yes,mkmk=yes,kern=yes,curs=yes] \definefontsynonym [arab--scheherazade--serif][name:scheherazade][features=arab] \definefontsynonym[brai--6punktoj][name:6punktoj] %^1 \starttypescript[sans][roboto] \definefontfallback[Sans][brai--6punktoj][0x2800-0x283f][force=yes,check=no] \definefontfallback[Sans][arab--scheherazade--serif][0x0600-0x06ff,0x0750-0x077f,0xfb50-0xfdff,0xfe70-0xfefe][force=yes,check=no,rscale=1.9] \definefontsynonym[Sans][name:robotoregular][fallbacks=Sans] \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=Latn-smallcaps] \stoptypescript \starttypescript[serif][roboto] \definefontfallback[Serif][brai--6punktoj][0x2800-0x283f][force=yes,check=no] \definefontfallback[Serif][arab--scheherazade--serif][0x0600-0x06ff,0x0750-0x077f,0xfb50-0xfdff,0xfe70-0xfefe][force=yes,check=no,rscale=1.9] \definefontsynonym[Serif][name:robotoslabregular][fallbacks=Serif] \definefontsynonym[SerifBold][name:robotoslabbold] \definefontsynonym[SerifItalic][name:robotoslabregular][features=fakeitalic] \definefontsynonym[SerifSlanted][name:robotoslabregular][features=fakeitalic] \definefontsynonym[SerifBoldItalic][name:robotoslabbold][features=fakeitalic] \definefontsynonym[SerifBoldSlanted][name:robotoslabbold][features=fakeitalic] \definefontsynonym[SerifCaps][name:robotoslabregular][features=Latn-smallcaps] \stoptypescript \definetypeface[fliesstext][rm][serif][roboto] \definetypeface[fliesstext][ss][sans][roboto] \setupbodyfont[fliesstext,rm,11pt] ----8<------------------------------------------ Any help is appreciated :-) 1) That braille font is created by myself and will be published for ConTeXt soon - still a little rocky. [1] https://dl-ssl.google.com/android/design/Roboto_Hinted_20111129.zip [2] http://ff.static.1001fonts.net/r/o/roboto-slab.regular.ttf [3] http://ff.static.1001fonts.net/r/o/roboto-slab.thin.ttf [4] http://ff.static.1001fonts.net/r/o/roboto-slab.light.ttf [5] http://ff.static.1001fonts.net/r/o/roboto-slab.bold.ttf ___________________________________________________________________________________ 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 ___________________________________________________________________________________