From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64790 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: how to ask lua if glyph nr. x exists in current font Date: Thu, 23 Dec 2010 19:26:09 +0100 Message-ID: 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 1293128795 30066 80.91.229.12 (23 Dec 2010 18:26:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 23 Dec 2010 18:26:35 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 23 19:26:29 2010 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 1PVprx-0007Y2-6V for gctc-ntg-context-518@m.gmane.org; Thu, 23 Dec 2010 19:26:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 18071CA972; Thu, 23 Dec 2010 19:26:28 +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 DNxTVU7-ws7r; Thu, 23 Dec 2010 19:26:25 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1E492CA94F; Thu, 23 Dec 2010 19:26:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3A5DBCA94F for ; Thu, 23 Dec 2010 19:26:24 +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 ZHorMwvABdsV for ; Thu, 23 Dec 2010 19:26:13 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 38C91CA94B for ; Thu, 23 Dec 2010 19:26:13 +0100 (CET) Original-Received: from mail-qw0-f41.google.com (mail-qw0-f41.google.com [209.85.216.41]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oBNIQABM006996 for ; Thu, 23 Dec 2010 19:26:12 +0100 Original-Received: by qwa26 with SMTP id 26so6363640qwa.14 for ; Thu, 23 Dec 2010 10:26:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=Jgtf0/XEiqw+fftIVRDvrZsvVlWDlARxrnG2233gXjA=; b=bnxQMSKqW0VIDbeg/KwjDapgcswWJiKQ+qcbiskh1aSHKE4orRM0HJk25cJJUSnbVT ybkr3XXvogQJWp+2lYfVaX0EdGfX8YsrhY26FSpqo5IlZTTok3EeRf1zSelgfXNhIq2v vAFzzqpccc+Uwwn2GOddeg/ez1YqIu4kGLRAw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=PPMqglOyvvR6zwryqO1TVoQB1/UHaYxyrrUfBSXln7kRizLtjVNcB1+RoAaIsU6Fyy VAjdYiaj1VLC/laA6gEJsGvJ4HfRVx/0nmvsVDkxh/uZiG6MLgD/RY+bPCk7yiZMLJv+ lrobEnQrcDFkwzbmujzjaRPQ9u9+A/pFFpONM= Original-Received: by 10.229.251.82 with SMTP id mr18mr7332827qcb.146.1293128769495; Thu, 23 Dec 2010 10:26:09 -0800 (PST) Original-Received: by 10.229.30.6 with HTTP; Thu, 23 Dec 2010 10:26:09 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08DKGqa4W - cbb2d2b5f9db - 20101223 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:64790 Archived-At: Hello, I'm trying to decrypt the LuaTeX reference manual. I find it easy enough to read data about different fonts when using fontA = fontloader.open('a.otf') and then glyphs = fontloader.to_table(fontA).glyphs but I'm not able to figure out how to aks the same question about the font that is currently being used (in MKIV). I would like to know if a glyph with some Unicode value is present in the font or not. Thanks for the hints, Mojca ___________________________________________________________________________________ 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 ___________________________________________________________________________________