From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81576 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Hanging and Protrusion with Typescript Date: Tue, 9 Apr 2013 23:20:44 +0200 Message-ID: <650B69B5-F0E5-48AA-8684-A8CCC9090E83@gmail.com> References: <5164132A.2020905@mmnetz.de> <51646A25.8090701@wxs.nl> <51646FDF.3060404@mmnetz.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1365542473 19221 80.91.229.3 (9 Apr 2013 21:21:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Apr 2013 21:21:13 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 09 23:21:17 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from [195.12.62.10] (helo=balder.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UPfya-0002GQ-Tc for gctc-ntg-context-518@m.gmane.org; Tue, 09 Apr 2013 23:21:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2C7C010309; Tue, 9 Apr 2013 23:20:52 +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 y3VxQquWeYOd; Tue, 9 Apr 2013 23:20:50 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 62ACB102EB; Tue, 9 Apr 2013 23:20:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7E74B102EB for ; Tue, 9 Apr 2013 23:20:48 +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 TUNIXskTtpgC for ; Tue, 9 Apr 2013 23:20:47 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 973C710290 for ; Tue, 9 Apr 2013 23:20:47 +0200 (CEST) Original-Received: from mail-bk0-x230.google.com (mail-bk0-x230.google.com [IPv6:2a00:1450:4008:c01::230]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r39LKkUP027799 for ; Tue, 9 Apr 2013 23:20:46 +0200 Original-Received: by mail-bk0-f48.google.com with SMTP id jf3so3809430bkc.21 for ; Tue, 09 Apr 2013 14:20:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=sFV+/3Yi5438aFhBssNT59+OjVg7BiVV1XzxJMBv6aQ=; b=Y8/+y9zEJdUYPNZ3TTZveMj3caA3G7PtCtf6xrZt7qaW3MWPoqtD8KdQH/Nt6I2Mir KcMSSkLJ5xIrQ1n7F9EhV7eV8XD5ZaXEysICJ2xHZr6k/p41wTeGdqg+30bwBxEWybjv 1o91VOvSSWf3nTmS8lwUHysVXrZt/QKN4lHfzCE+uL+g6YLKrAT1Nf34qLgEV5S6z0nO jbpUCNkafIGV4h9WBvGY5wgTOrts4Hr30oSx3vptZxpRSRGnXPyM1YMV9Yyi3Okuzp5/ RvEbcaU7ubhIf0+Nqk0Bl+RQUEpgzuaTuaWIkundjStCBQWaHwNrD2N4GkLILTZPE6lE 13ZA== X-Received: by 10.205.100.198 with SMTP id cx6mr13462659bkc.106.1365542446287; Tue, 09 Apr 2013 14:20:46 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4dbe65de.pool.mediaWays.net. [77.190.101.222]) by mx.google.com with ESMTPS id gm14sm14640530bkc.7.2013.04.09.14.20.44 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 09 Apr 2013 14:20:45 -0700 (PDT) In-Reply-To: <51646FDF.3060404@mmnetz.de> X-Mailer: Apple Mail (2.1503) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4008:c01::230; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06JlVkKBb - 2b346b7c01c8 - 20130409 (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:81576 Archived-At: Am 09.04.2013 um 21:45 schrieb "H. =D6zoguz" : > = >> = >> Best look into some type-imp files to see how typescript are defined. = > = > I looked in the wiki, and my minexample is from the wiki, too. What is a = "type-imp"? Hans speaks of the type-imp-texgyre.mkiv, type-imp-latinmodern.mkiv etc. fi= les > So I changed the code into: > +++++++++++++++ > \starttypescript [serif] [nimbus] > = > \definefontsynonym [Serif] [file:AGaramondPro-Regular.otf] > = > \definefontsynonym [SerifBold] [file:AGaramondPro-Bold.otf] > = > \definefontsynonym [SerifItalic] [file:AGaramondPro-Italic.otf] > = > \definefontsynonym [SerifBoldItalic] [file:AGaramondPro-BoldItalic.otf] > = > \stoptypescript > = > = > = > \definefontfeature > = > [default] > = > [default] > = > [protrusion=3Dquality,expansion=3Dquality] > = > = > \setupalign[hz,hanging] > = > \setupbodyfont[nimbus,rm,12pt] > = > = > \definetypeface [nimbus] [rm] [serif] [nimbus] > = > = > \starttext > = > \input tufte > = > \stoptext > ++++++++++++++++++++ > = > = > Hanging is now activated, but not with the defined font "AGaramondPro", b= ut with Computer Modern, so now the typescript is not accepted. So changing= the command orders does not help, at least not alone. You tried to load your nimbus font before it was defined, move \definetypef= ace *before* \setupbodyfont to make it work. > Sorry, I did not understand, what you mean with > "what features? maybe add *default or so ... depends on how general defin= itions are". You need [features=3Ddefault] either at the end of each \definefontsynonym = command or at the end of \definetypeface. > Which "features" do you mean, and what is the question? I simply copied t= his from the wiki, and hoped that I could use AdobeGaramond now. It works, = but not together with Hanging. I corrected your example above: \starttypescript [serif] [nimbus] \definefontsynonym [Serif] [file:AGaramondPro-Regular.otf] \definefontsynonym [SerifBold] [file:AGaramondPro-Bold.otf] \definefontsynonym [SerifItalic] [file:AGaramondPro-Italic.otf] \definefontsynonym [SerifBoldItalic] [file:AGaramondPro-BoldItalic.otf] \stoptypescript \definefontfeature[default][default][protrusion=3Dquality,expansion=3Dquali= ty] \definetypeface [nimbus] [rm] [serif] [nimbus] [features=3Ddefault] \setupbodyfont[nimbus,rm,12pt] \setupalign[hz,hanging] \starttext \input tufte \stoptext Wolfgang ___________________________________________________________________________= ________ 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-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________