From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72352 Path: news.gmane.org!not-for-mail From: "Christian" Newsgroups: gmane.comp.tex.context Subject: Re: Simplefonts: Font scaling problem Date: Sat, 12 Nov 2011 15:33:27 +0100 Message-ID: <006c01cca148$0aeea130$20cbe390$@gmx.de> References: <004e01cca095$68d56ad0$3a804070$@gmx.de> <005e01cca096$374fd8a0$a5ef89e0$@gmx.de> <4EBE4410.5000903@uni-bonn.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" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1321108426 27978 80.91.229.12 (12 Nov 2011 14:33:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Nov 2011 14:33:46 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 12 15:33:39 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 1RPEeJ-0003Pq-5f for gctc-ntg-context-518@m.gmane.org; Sat, 12 Nov 2011 15:33:39 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F3E8BCB0E1; Sat, 12 Nov 2011 15:33:37 +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 DnBl-iQ8uyRl; Sat, 12 Nov 2011 15:33:35 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D0FC4CB0D4; Sat, 12 Nov 2011 15:33:34 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C68C5CB0D4 for ; Sat, 12 Nov 2011 15:33:33 +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 HXvamCbj5MO9 for ; Sat, 12 Nov 2011 15:33:32 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 161D6CB0C9 for ; Sat, 12 Nov 2011 15:33:32 +0100 (CET) Original-Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with SMTP id pACEXV5L030398 for ; Sat, 12 Nov 2011 15:33:31 +0100 Original-Received: (qmail invoked by alias); 12 Nov 2011 14:33:30 -0000 Original-Received: from f053210109.adsl.alicedsl.de (EHLO christiandelux) [78.53.210.109] by mail.gmx.net (mp064) with SMTP; 12 Nov 2011 15:33:30 +0100 X-Authenticated: #61879178 X-Provags-ID: V01U2FsdGVkX19FystxYeJFjtk7Afg7NUlrYPHvKTuy98L+GGx0B5 BHzFSYkZG+zrBk In-Reply-To: <4EBE4410.5000903@uni-bonn.de> X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQMM0RQm5MMoBOcn1PQG12FZ9S23+QJnBodgAZEZLLuTCSwEYA== Content-Language: de X-Y-GMX-Trusted: 0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.165.64.22; 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: 0rFUexvS8 - 9fdecf810b20 - 20111112 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:72352 Archived-At: > >> 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). You are right! It's all fine, when I add the code you posted and insert the appropriate sizes for those where it didn't work before. Thanks for your 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 ___________________________________________________________________________________