From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/43140 Path: news.gmane.org!not-for-mail From: "Vasile Gaburici" Newsgroups: gmane.comp.tex.context Subject: Re: Font problems with latest minimals on Linux Date: Wed, 13 Aug 2008 13:05:16 +0300 Message-ID: References: <48A2908E.6020408@elvenkind.com> Reply-To: gaburici@cs.umd.edu, mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_49983_7717135.1218621916830" X-Trace: ger.gmane.org 1218625632 5038 80.91.229.12 (13 Aug 2008 11:07:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Aug 2008 11:07:12 +0000 (UTC) Cc: mailing list for ConTeXt users To: "Taco Hoekwater" Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 13 13:08:04 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KTECv-0006LB-2G for gctc-ntg-context-518@m.gmane.org; Wed, 13 Aug 2008 13:08:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0CCB31FDE1; Wed, 13 Aug 2008 13:07:03 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09290-01-2; Wed, 13 Aug 2008 13:06:12 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1C9781FE28; Wed, 13 Aug 2008 12:33:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5ACF41FE15 for ; Wed, 13 Aug 2008 12:33:28 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02865-02-8 for ; Wed, 13 Aug 2008 12:32:39 +0200 (CEST) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by ronja.ntg.nl (Postfix) with ESMTP id 3ADB61FE50 for ; Wed, 13 Aug 2008 12:05:18 +0200 (CEST) Original-Received: by nf-out-0910.google.com with SMTP id c10so929129nfd.44 for ; Wed, 13 Aug 2008 03:05:16 -0700 (PDT) Original-Received: by 10.210.16.11 with SMTP id 11mr11614917ebp.187.1218621916794; Wed, 13 Aug 2008 03:05:16 -0700 (PDT) Original-Received: by 10.210.17.17 with HTTP; Wed, 13 Aug 2008 03:05:16 -0700 (PDT) In-Reply-To: <48A2908E.6020408@elvenkind.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:43140 Archived-At: ------=_Part_49983_7717135.1218621916830 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline As for the missing bold, it seems there's a bug in the naming scheme: Ii the bold italic file gets read from the disk before the bold, then you don't get the right entries. It so happens that most of the fonts in that dir had bold before bold italic, e.g. fontnames | identifying ttf font /usr/share/fonts/vista/Verdanai.ttf fontnames | identifying ttf font /usr/share/fonts/vista/Verdana.ttf fontnames | identifying ttf font /usr/share/fonts/vista/Verdanaz.ttf fontnames | identifying ttf font /usr/share/fonts/vista/Verdanab.ttf fontnames | identifying otf font /usr/share/fonts/vista/C-series/Calibri Bold Italic.otf fontnames | identifying otf font /usr/share/fonts/vista/C-series/Calibri.otf fontnames | identifying otf font /usr/share/fonts/vista/C-series/Calibri Italic.otf fontnames | identifying otf font /usr/share/fonts/vista/C-series/Calibri Bold.otf So, I've added some extra code (patch attached) to print the names it adds to the hash. As you can see there is a clash: both bold italic and bold want to "own" bold... fontnames | identifying ttf font /usr/share/fonts/vista/Verdanaz.ttf add | verdana bold italic -> {ttf, Verdana Bold Italic, /usr/share/fonts/vista/Verdanaz.ttf, ...} add | verdanabolditalic -> {ttf, Verdana Bold Italic, /usr/share/fonts/vista/Verdanaz.ttf, ...} add | verdana-bolditalic -> {ttf, Verdana Bold Italic, /usr/share/fonts/vista/Verdanaz.ttf, ...} add | verdanabolditalic -> {ttf, Verdana Bold Italic, /usr/share/fonts/vista/Verdanaz.ttf, ...} add | verdana bold -> {ttf, Verdana Bold Italic, /usr/share/fonts/vista/Verdanaz.ttf, ...} add | verdanabold -> {ttf, Verdana Bold Italic, /usr/share/fonts/vista/Verdanaz.ttf, ...} fontnames | identifying ttf font /usr/share/fonts/vista/Verdanab.ttf add | verdana bold -> {ttf, Verdana Bold, /usr/share/fonts/vista/Verdanab.ttf, ...} add | verdanabold -> {ttf, Verdana Bold, /usr/share/fonts/vista/Verdanab.ttf, ...} add | verdana-bold -> {ttf, Verdana Bold, /usr/share/fonts/vista/Verdanab.ttf, ...} add | verdanabold -> {ttf, Verdana Bold, /usr/share/fonts/vista/Verdanab.ttf, ...} add | verdana bold -> {ttf, Verdana Bold, /usr/share/fonts/vista/Verdanab.ttf, ...} add | verdanabold -> {ttf, Verdana Bold, /usr/share/fonts/vista/Verdanab.ttf, ...} fontnames | identifying otf font /usr/share/fonts/vista/C-series/Calibri Bold Italic.otf add | calibri bold italic -> {otf, Calibri Bold Italic, /usr/share/fonts/vista/C-series/Calibri Bold Italic.otf, ...} add | calibribolditalic -> {otf, Calibri Bold Italic, /usr/share/fonts/vista/C-series/Calibri Bold Italic.otf, ...} add | calibri-bolditalic -> {otf, Calibri Bold Italic, /usr/share/fonts/vista/C-series/Calibri Bold Italic.otf, ...} add | calibribolditalic -> {otf, Calibri Bold Italic, /usr/share/fonts/vista/C-series/Calibri Bold Italic.otf, ...} add | calibri bold -> {otf, Calibri Bold Italic, /usr/share/fonts/vista/C-series/Calibri Bold Italic.otf, ...} add | calibribold -> {otf, Calibri Bold Italic, /usr/share/fonts/vista/C-series/Calibri Bold Italic.otf, ...} fontnames | identifying otf font /usr/share/fonts/vista/C-series/Calibri Bold.otf add | calibri bold -> {otf, Calibri Bold, /usr/share/fonts/vista/C-series/Calibri Bold.otf, ...} add | calibribold -> {otf, Calibri Bold, /usr/share/fonts/vista/C-series/Calibri Bold.otf, ...} add | calibri-bold -> {otf, Calibri Bold, /usr/share/fonts/vista/C-series/Calibri Bold.otf, ...} add | calibribold -> {otf, Calibri Bold, /usr/share/fonts/vista/C-series/Calibri Bold.otf, ...} add | calibri bold -> {otf, Calibri Bold, /usr/share/fonts/vista/C-series/Calibri Bold.otf, ...} add | calibribold -> {otf, Calibri Bold, /usr/share/fonts/vista/C-series/Calibri Bold.otf, ...} I don't know how to fix since it's not clear to me what names you actually want... On Wed, Aug 13, 2008 at 10:43 AM, Taco Hoekwater wrote: > > > Vasile Gaburici wrote: >> >> I've switched to the rsync-ed minimals on Linux. There are still some >> problems with fonts: >> >> 1) Bold is still missing from fonts pulled via OSFONTDIR, e.g.: >> >> verdana Verdana >> /usr/share/fonts/vista/Verdana.ttf >> verdana bold italic Verdana Bold Italic >> /usr/share/fonts/vista/Verdanaz.ttf >> verdana italic Verdana Italic >> /usr/share/fonts/vista/Verdanai.ttf > > This works OK for ttf fonts on my linux machine, but I don't > have the ttf version of verdana, so perhaps it is something > special to that font. > >> 2) OSFONTDIR is not recursive. To get the above I used "export >> OSFONTDIR=/usr/share/fonts/vista/", just >> "export OSFONTDIR=/usr/share/fonts/" doesn't work. > > Yes, recursion would be nice. > > Best wishes, > Taco > > ------=_Part_49983_7717135.1218621916830 Content-Type: text/x-patch; name=whynobold.patch Content-Transfer-Encoding: base64 X-Attachment-Id: f_fjtrr20x0 Content-Disposition: attachment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ZSwgc3ViIH0sIG5vZm9rICsgMSBlbmQKKyAgICAgICAgaWYgZm9udHMubmFtZXMudHJhY2Ug dGhlbgorICAgICAgICAgICBsb2dzLnJlcG9ydCgiYWRkIiwiJXMgLT4geyVzLCAlcywgJXMsIC4u Ln0iLCBuLCBzdWZmaXgsIGZvbnRuYW1lLCBmaWxlbmFtZSkKKyAgICAgICAgICAgbG9ncy5wdXNo KCkKKyAgICAgICAgICAgbG9ncy5wb3AoKQorICAgICAgICBlbmQKICAgICAgICAgbiA9IG46Z3N1 YigiW14lYSVkXSIsIiIpCiAgICAgICAgIGlmIG5vdCBtYXBwaW5nW25dIHRoZW4gbWFwcGluZ1tu XSwgbm9mb2sgPSB7IHN1ZmZpeCwgZm9udG5hbWUsIGZpbGVuYW1lLCBzdWIgfSwgbm9mb2sgKyAx IGVuZAorICAgICAgICBpZiBmb250cy5uYW1lcy50cmFjZSB0aGVuCisgICAgICAgICAgIGxvZ3Mu cmVwb3J0KCJhZGQiLCIlcyAtPiB7JXMsICVzLCAlcywgLi4ufSIsIG4sIHN1ZmZpeCwgZm9udG5h bWUsIGZpbGVuYW1lKQorICAgICAgICAgICBsb2dzLnB1c2goKQorICAgICAgICAgICBsb2dzLnBv cCgpCisgICAgICAgIGVuZAogICAgIGVuZAogICAgIGxvY2FsIGZ1bmN0aW9uIGNoZWNrKHJlc3Vs dCwgZmlsZW5hbWUsIHN1ZmZpeCwgaXNfc3ViKQogICAgICAgICBsb2NhbCBmb250bmFtZSA9IHJl c3VsdC5mdWxsbmFtZQo= ------=_Part_49983_7717135.1218621916830 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ------=_Part_49983_7717135.1218621916830--