From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84744 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Bug: Reloading Font Date: Sat, 12 Oct 2013 01:53:20 +0200 Message-ID: <52588F70.90708@wxs.nl> References: <52586AB6.6030302@wxs.nl> <20131011222609.GA24051@tartaros> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1381535609 8356 80.91.229.3 (11 Oct 2013 23:53:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Oct 2013 23:53:29 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Oct 12 01:53:33 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VUmWS-0003zw-Qz for gctc-ntg-context-518@m.gmane.org; Sat, 12 Oct 2013 01:53:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 75B99101E9; Sat, 12 Oct 2013 01:50:55 +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 IS3C5+8pyojD; Sat, 12 Oct 2013 01:50:52 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id A9454101DE; Sat, 12 Oct 2013 01:50:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0730F101DE for ; Sat, 12 Oct 2013 01:50:51 +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 ELIbCGxyZzpl for ; Sat, 12 Oct 2013 01:50:49 +0200 (CEST) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 79B1D10193 for ; Sat, 12 Oct 2013 01:50:49 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r9BNrOt1009938 for ; Sat, 12 Oct 2013 01:53:24 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.104; Original-Received: from [10.100.1.104] (unverified [10.100.1.104]) by pragma-net.nl (SurgeMail 6.3c2) with ESMTP id 9840-1713362 for ; Sat, 12 Oct 2013 01:53:23 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 In-Reply-To: <20131011222609.GA24051@tartaros> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=15; city=Zwolle; latitude=52.5058; longitude=6.0858; http://maps.google.com/maps?q=52.5058,6.0858&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08KzXRo6N - f17bec8ec106 - 20131012 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:84744 Archived-At: On 10/12/2013 12:26 AM, Philipp Gesang wrote: > =B7=B7=B7=B7=B7=B7=B7=B7=B7 > >> FYI, >> >> I didn't know that the font was corrupt. I have over 400 fonts on my >> machine, and had to reload to pick up the new ones. You'll find that >> having a large number of fonts will start to become a common situation >> as more fonts become public (e.g., Google's Free Web Fonts project). >> This increases the chances that some of those fonts will be corrupt. sure, but fonts should be chosen with care .. and illegal ripoffs should = be avoided (those cd's with hundreds of fonts, nowadays sites) (quality of design / digitization, completeness of coverage, correctness = of features ... much can be wrong) >> It is a low priority, but a corrupt font should not cause a program to >> hang or crash. The software should exit gracefully, and perhaps >> strongly suggest to standard error that the user investigate that >> particular font file. > > +1 > >> For my particular application, eventually I will allow users to upload >> custom fonts. If they upload a font that is corrupt (accidentally or >> intentionally), a run-away process would make for a rainy day. In that case I'd run a separate font checker, as you never know what = users upload. Similar issues can occur with those tagged formats that = are in fact linked lists. > That=92s a serious problem with Luatex. The fontforge libraries > used to import font data simply hang with various corrupt fonts. > So far the only viable workaround is to manually create a > blacklist of bad fonts. E.g. this is the current list for > Luaotfload: > > https://github.com/lualatex/luaotfload/blob/master/luaotfload-blacklis= t.cnf > > (Copperplate is going to be added soon.) Unfortunately, Context > does not yet have blacklisting functionality (it=92s marked as todo > in the source) so you=92re going to have to filter out bad files > from your font directories by hand. a slippery road .. blacklisting .. this is why it's todo .. (actually in = the beginning context had something like that) ... the problem is that = such lists can be persistent and users don't know about them (anyhow, I enabled it in the treatments but probably am not going to = waste much time on such fonts ... a font not loading is one, but in = order to be complete blacklisting would also need to involve fonts with = bugged encodings - and i've seen some - and other issues ... i also want = to avoid a 'why doesn't this font work, it should because it's not = blacklisted' kind of discussions) > Regards, > Philipp > > > > _________________________________________________________________________= __________ > 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-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ > -- = ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________