From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/54773 Path: news.gmane.org!not-for-mail From: Mika Ritola Newsgroups: gmane.comp.tex.context Subject: Re: Problem with font mapping Date: Wed, 25 Nov 2009 20:52:08 +0200 Message-ID: <86d68cc30911251052q2be98522ked8a0e93508a9e4d@mail.gmail.com> References: <86d68cc30911250727xcbb007elc822b887a3d54c30@mail.gmail.com> <4B0D5FA8.3010809@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0020986627==" X-Trace: ger.gmane.org 1259175151 1381 80.91.229.12 (25 Nov 2009 18:52:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Nov 2009 18:52:31 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 25 19:52:24 2009 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.50) id 1NDMyV-0008Fi-1m for gctc-ntg-context-518@m.gmane.org; Wed, 25 Nov 2009 19:52:23 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E47D1C9C8B; Wed, 25 Nov 2009 19:49:32 +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 DHPQGbSnoEtB; Wed, 25 Nov 2009 19:49:29 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 62CC8C9C71; Wed, 25 Nov 2009 19:49:29 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CD928C9C80 for ; Wed, 25 Nov 2009 19:49:25 +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 lJ-RpTU1Rcev for ; Wed, 25 Nov 2009 19:49:21 +0100 (CET) Original-Received: from mail-ew0-f209.google.com (mail-ew0-f209.google.com [209.85.219.209]) by balder.ntg.nl (Postfix) with ESMTP id CA4FAC9C69 for ; Wed, 25 Nov 2009 19:49:20 +0100 (CET) Original-Received: by ewy1 with SMTP id 1so204704ewy.34 for ; Wed, 25 Nov 2009 10:52:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=nRWy7MlgyGYdOrvKjT1YqJhz0T07eD9yLwNDrBFSKJs=; b=TTi8hJZZTv5A+v5ozGgzxeoecduJPzxtAURxsmqOI56YfvE0yI8OrvsNaIpn+Cj1P0 auDMPIEfFR10WESZQYTbPofGMQm1uf2e1WC1Bysanvx06Ao9zLKtJpwwP1JJ+kr5GSaG 0D/JsZBueuyGmp+rUC2d1NU3gZd9SuwNzB70k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=L3Dp4U20AZMpAF477vIOFDrPlrdlRLbbS4vdzgLqZIPK74Q0cQNub9OUkYB5DTQJM5 vKpXOh1SoMpatC0Hj7ahgjE5+sdZOw/8NCvTHKQHZPxXjr/V88WIE0PE0JuOc03+WYDx Z+f3JIca99Je5BqYCXIdWbwdjBtSbwHr67YCw= Original-Received: by 10.213.107.131 with SMTP id b3mr7044769ebp.91.1259175128732; Wed, 25 Nov 2009 10:52:08 -0800 (PST) In-Reply-To: <4B0D5FA8.3010809@wxs.nl> 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:54773 Archived-At: --===============0020986627== Content-Type: multipart/alternative; boundary=00504502cd234214520479368e2b --00504502cd234214520479368e2b Content-Type: text/plain; charset=ISO-8859-1 2009/11/25 Hans Hagen > Mika Ritola wrote: > >> Hello again, >> >> I seem to be running into all sorts of font problems. Now my document has >> suddenly turned bold. For example, running the following code results in >> "Test." being rendered in bold characters. >> >> \usemodule[simplefonts] >> \setmainfont[Adobe Garamond Pro] >> >> \starttext >> Test. >> \stoptext >> >> Running "mtxrun --script font --list --pattern="*Garamond*" --all" reveals >> that there's something fishy about the font mapping: >> >> adobegaramondpro => agaramondprosemibold => AGaramondPro-Semibold.otf >> adobegaramondprobold => agaramondprosemibold => AGaramondPro-Semibold.otf >> adobegaramondprobolditalic => agaramondprosemibolditalic => >> AGaramondPro-SemiboldItalic.otf >> adobegaramondproitalic => agaramondprobolditalic => >> AGaramondPro-BoldItalic.otf >> adobegaramondpronormal => agaramondproregular => AGaramondPro-Regular.otf >> adobegaramondproregular => agaramondprobold => AGaramondPro-Bold.otf >> adobegaramondprosemibold => agaramondprosemibold => >> AGaramondPro-Semibold.otf >> agaramondprobold => agaramondprobold => AGaramondPro-Bold.otf >> agaramondprobolditalic => agaramondprobolditalic => >> AGaramondPro-BoldItalic.otf >> agaramondproitalic => agaramondproitalic => AGaramondPro-Italic.otf >> agaramondproregular => agaramondproregular => AGaramondPro-Regular.otf >> agaramondprosemibold => agaramondprosemibold => AGaramondPro-Semibold.otf >> agaramondprosemibolditalic => agaramondprosemibolditalic => >> AGaramondPro-SemiboldItalic.otf >> > > i cannot check it as i have no adobe garamond > > > As you can see, agaramond... are mapped properly while adobegaramond... >> are mapped wrong. >> > > it all depends in what info is in the font ... familyname, weight etc and > sometimes it's contradicting > > I downgraded to the "current" (2009.10.27 16:35) version of ConTeXt to see if the mappings are different, and this is the result: adobegaramondpro => Adobe Garamond Pro Bold => AGaramondPro-Bold.otf adobegaramondprobold => Adobe Garamond Pro Bold => AGaramondPro-Bold.otf adobegaramondprobolditalic => Adobe Garamond Pro Bold Italic => AGaramondPro-BoldItalic.otf adobegaramondproitalic => Adobe Garamond Pro Italic => AGaramondPro-Italic.otf adobegaramondproregular => Adobe Garamond Pro Regular => AGaramondPro-Regular.otf adobegaramondprosemibold => Adobe Garamond Pro Semibold => AGaramondPro-Semibold.otf adobegaramondprosemibolditalic => Adobe Garamond Pro Semibold Italic => AGaramondPro-SemiboldItalic.otf agaramondprobold => AGaramondPro-Bold => AGaramondPro-Bold.otf agaramondprobolditalic => AGaramondPro-BoldItalic => AGaramondPro-BoldItalic.otf agaramondproitalic => AGaramondPro-Italic => AGaramondPro-Italic.otf agaramondproregular => AGaramondPro-Regular => AGaramondPro-Regular.otf agaramondprosemibold => AGaramondPro-Semibold => AGaramondPro-Semibold.otf agaramondprosemibolditalic => AGaramondPro-SemiboldItalic => AGaramondPro-SemiboldItalic.otf In other words, the mappings seem to be fine here (though I'm not sure about the first one). Thus, it seems that some change in ConTeXt has "broken" the font. > > Changing \setmainfont[Adobe Garamond Pro] to \setmainfont[agaramondpro] >> fixes the issue but, still, I'd prefer to use the former (as I've done until >> now) since it's clearer. >> > > how recent is your version of mtxrun / mtx-font / font database? it has > been a bit in flux last weeks > > Do you mean the database that's generated by "mtxrun --script font --reload"? Updating it didn't solve the problem. Mika --00504502cd234214520479368e2b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
2009/11/25 Hans Hagen <pragma@wxs.nl>=
Mika Ritola wrote:
Hello again,

I seem to be running into all sorts of font problems. Now my document has s= uddenly turned bold. For example, running the following code results in &qu= ot;Test." being rendered in bold characters.

\usemodule[simplefonts]
\setmainfont[Adobe Garamond Pro]

\starttext
Test.
\stoptext

Running "mtxrun --script font --list --pattern=3D"*Garamond*"= ; --all" reveals that there's something fishy about the font mappi= ng:

adobegaramondpro =3D> agaramondprosemibold =3D> AGaramondPro-Semibold= .otf
adobegaramondprobold =3D> agaramondprosemibold =3D> AGaramondPro-Semi= bold.otf
adobegaramondprobolditalic =3D> agaramondprosemibolditalic =3D> AGara= mondPro-SemiboldItalic.otf
adobegaramondproitalic =3D> agaramondprobolditalic =3D> AGaramondPro-= BoldItalic.otf
adobegaramondpronormal =3D> agaramondproregular =3D> AGaramondPro-Reg= ular.otf
adobegaramondproregular =3D> agaramondprobold =3D> AGaramondPro-Bold.= otf
adobegaramondprosemibold =3D> agaramondprosemibold =3D> AGaramondPro-= Semibold.otf
agaramondprobold =3D> agaramondprobold =3D> AGaramondPro-Bold.otf
agaramondprobolditalic =3D> agaramondprobolditalic =3D> AGaramondPro-= BoldItalic.otf
agaramondproitalic =3D> agaramondproitalic =3D> AGaramondPro-Italic.o= tf
agaramondproregular =3D> agaramondproregular =3D> AGaramondPro-Regula= r.otf
agaramondprosemibold =3D> agaramondprosemibold =3D> AGaramondPro-Semi= bold.otf
agaramondprosemibolditalic =3D> agaramondprosemibolditalic =3D> AGara= mondPro-SemiboldItalic.otf

i cannot check it as i have no adobe garamond


As you can see, agaramond... are mapped properly while adobegaramond... are= mapped wrong.

it all depends in what info is in the font ... familyname, weight etc and s= ometimes it's contradicting

I downgrade= d to the "current" (2009.10.27 16:35) version of ConTeXt to see i= f the mappings are different, and this is the result:

adobegaramondpro =3D> Adobe Garamond Pro Bold =3D> AGaramondPro-B= old.otf
adobegaramondprobold =3D> Adobe Garamond Pro Bold =3D> AGa= ramondPro-Bold.otf
adobegaramondprobolditalic =3D> Adobe Garamond Pro= Bold Italic =3D> AGaramondPro-BoldItalic.otf
adobegaramondproitalic =3D> Adobe Garamond Pro Italic =3D> AGaramondP= ro-Italic.otf
adobegaramondproregular =3D> Adobe Garamond Pro Regular= =3D> AGaramondPro-Regular.otf
adobegaramondprosemibold =3D> Adobe= Garamond Pro Semibold =3D> AGaramondPro-Semibold.otf
adobegaramondprosemibolditalic =3D> Adobe Garamond Pro Semibold Italic = =3D> AGaramondPro-SemiboldItalic.otf
agaramondprobold =3D> AGaramo= ndPro-Bold =3D> AGaramondPro-Bold.otf
agaramondprobolditalic =3D> = AGaramondPro-BoldItalic =3D> AGaramondPro-BoldItalic.otf
agaramondproitalic =3D> AGaramondPro-Italic =3D> AGaramondPro-Italic.= otf
agaramondproregular =3D> AGaramondPro-Regular =3D> AGaramondPr= o-Regular.otf
agaramondprosemibold =3D> AGaramondPro-Semibold =3D>= AGaramondPro-Semibold.otf
agaramondprosemibolditalic =3D> AGaramondPro-SemiboldItalic =3D> AGar= amondPro-SemiboldItalic.otf

In other words, the mappings seem to be = fine here (though I'm not sure about the first one). Thus, it seems tha= t some change in ConTeXt has "broken" the font.

Changing \setmainfont[Adobe Garamond Pro] to \setmainfont[agaramondpro] fix= es the issue but, still, I'd prefer to use the former (as I've done= until now) since it's clearer.

how recent is your version of mtxrun / mtx-font / font database? it has bee= n a bit in flux last weeks

Do you mean the database that's generated by &qu= ot;mtxrun --script font --reload"? Updating it didn't solve the pr= oblem.

Mika
--00504502cd234214520479368e2b-- --===============0020986627== 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 ___________________________________________________________________________________ --===============0020986627==--