From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72343 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: Simplefonts: Font scaling problem Date: Sat, 12 Nov 2011 11:01:52 +0100 Message-ID: <4EBE4410.5000903@uni-bonn.de> References: <004e01cca095$68d56ad0$3a804070$@gmx.de> <005e01cca096$374fd8a0$a5ef89e0$@gmx.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1321092130 32351 80.91.229.12 (12 Nov 2011 10:02:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Nov 2011 10:02:10 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 12 11:02:04 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RPAPT-00068w-DJ for gctc-ntg-context-518@m.gmane.org; Sat, 12 Nov 2011 11:02:03 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A7DD0CB0DE; Sat, 12 Nov 2011 11:02:02 +0100 (CET) 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 Nb3ACs6gKTpH; Sat, 12 Nov 2011 11:01:58 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3A5DBCB0D6; Sat, 12 Nov 2011 11:01:58 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2A760CB0D6 for ; Sat, 12 Nov 2011 11:01:56 +0100 (CET) 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 rj6LxzO4sYDg for ; Sat, 12 Nov 2011 11:01:54 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 19ADFCB0D4 for ; Sat, 12 Nov 2011 11:01:54 +0100 (CET) Original-Received: from uni-bonn.de (mail.uni-bonn.de [131.220.15.113]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pACA1rFP003978 for ; Sat, 12 Nov 2011 11:01:53 +0100 Original-Received: from [87.178.62.142] (account tschmit1@uni-bonn.de HELO [192.168.0.3]) by fe2.uni-bonn.de (CommuniGate Pro SMTP 5.2.12) with ESMTPSA id 3547110 for ntg-context@ntg.nl; Sat, 12 Nov 2011 11:01:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 In-Reply-To: <005e01cca096$374fd8a0$a5ef89e0$@gmx.de> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=131.220.15.113; country=DE; region=07; city=Bonn; latitude=50.7333; longitude=7.1000; http://maps.google.com/maps?q=50.7333,7.1000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06FUa1RWf - 6bc30a63a9c7 - 20111112 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:72343 Archived-At: On 11/11/2011 06:20 PM, Christian wrote: > Good evening! >> I want to scale a font loaded via the simplefonts so sans and serif have the >> same x-height. >> But as soon as I use a font size larger than 12pt, the scaling is somehow off or >> ignored. >> Example: >> >> \usemodule[simplefonts] >> \setupsimplefonts[expansion=quality, protrusion=quality] >> \setmainfont[Times New Roman] >> \setsansfont[Arial][scale=0.863] >> \starttext >> \setupbodyfont[6pt] >> 06pt serif xx{\ss xx sans}\\ %fine >> \setupbodyfont[12pt] >> 12pt serif xx{\ss xx sans}\\ %fine, too >> \setupbodyfont[14pt] >> 14pt serif xx{\ss xx sans}\\ %here it starts to be off >> \setupbodyfont[16pt] >> 16pt serif xx{\ss xx sans}\\ >> \stoptext Your example is a bit difficult to test here because it's windows-centric, I don't have Arial on my system. But by looking at it, you should have something like this in your file before setting the fonts: \starttypescript [sans] [default] [size] \definebodyfont [16pt] [ss] [default] \stoptypescript \definebodyfontenvironment[16pt] and so on for other arbitrary sizes. ConTeXt doesn't define complete environments for every imaginable size (but I imagine Wolfgang may come up with a clever solution within his module). HTH Thomas ___________________________________________________________________________________ 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 ___________________________________________________________________________________