From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86361 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: Re: glyph path Date: Wed, 19 Feb 2014 19:41:26 +0100 Message-ID: <5304FAD6.90202@gmx.net> References: <5304A2D7.7000500@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1392835300 16429 80.91.229.3 (19 Feb 2014 18:41:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Feb 2014 18:41:40 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 19 19:41:49 2014 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 1WGC5d-0005Sb-BN for gctc-ntg-context-518@m.gmane.org; Wed, 19 Feb 2014 19:41:49 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 86FB0101F5; Wed, 19 Feb 2014 19:41:48 +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 94TffyWaeayc; Wed, 19 Feb 2014 19:41:46 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 58FC0101E6; Wed, 19 Feb 2014 19:41:46 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3619E101E6 for ; Wed, 19 Feb 2014 19:41:44 +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 0pqKU0M1xCQh for ; Wed, 19 Feb 2014 19:41:43 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 1B44C101E2 for ; Wed, 19 Feb 2014 19:41:33 +0100 (CET) Original-Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s1JIfWKo031753 for ; Wed, 19 Feb 2014 19:41:32 +0100 Original-Received: from [192.168.178.3] ([37.201.225.89]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MPppG-1WL7lJ0FFq-0050SO for ; Wed, 19 Feb 2014 19:41:31 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: <5304A2D7.7000500@gmx.net> X-Enigmail-Version: 1.6 X-Provags-ID: V03:K0:1sBLH/U+CAog3mC9TNkW9yfMJVFqdyUWDpVqFHjQePrxBRGp05v CHSaRRyoWhF3PweaoVHpXznLBRO77quL2xAu+AciTLdWlwFm8l4vRr7VhFOtzp41+RgsI2A 96T2RlLGm9wKDJ7w1z+bKucYvhkkfpkfp5sNKrkozPpwuDnrM/ICwS+UdQdEMjLlRUtpudE xToTskiQ0LhsDnRr5lL0w== X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=212.227.15.18; 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: 03LsiFw0Q - 60ffb22b751d - 20140219 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:86361 Archived-At: Forgot to tell why I need the glyph paths... I implemented multi path support in drops yesterday and now I want to test it with some glyphs. Currently I use Inkscape (export the glyph path as PDF) and pdftoedit to finally get a MP path. Time consuming and the result still needs a manual clean-up. Here is my current test example. Needless to say, that the path blew up my code in the first run (a too low threshold value) :-D http://www.wuala.com/indiego/public/ConTeXt/pathtest.pdf Am 19.02.2014 13:25, schrieb Peter Rolf: > Hi, > > I tried the "Dcaron" example from the MetaPost manual (page 50) and it > works nicely when called with "mpost". > > % Dcaron.mp > fontmapfile"=lm-ec.map"; > beginfig(56); > picture q; > path p; > interim ahlength:=12bp; > interim ahangle:=25; > q:= glyph "Dcaron" of "ec-lmr10" scaled .2; > for item within q: > p:= pathpart item; > drawarrow p withcolor(.6,.9,.6) withpen pencircle scaled 1.5; > for j=0 upto length p: > pickup pencircle scaled .7; > draw (point j of p -- precontrol j of p) > dashed evenly withcolor blue; > draw (point j of p -- postcontrol j of p) > dashed evenly withcolor blue; > pickup pencircle scaled 3; > draw precontrol j of p withcolor red; > draw postcontrol j of p withcolor red; > pickup pencircle scaled 2; > draw point j of p withcolor black; > endfor > endfor > endfig; > % ------- > > But how can I get the glyph path(s) with luatex (mplib)? > > Minimal example (glyph.mkiv) and console output are attached (log is > empty). Looks like I can't use 'fontmapfile' and without it the glyphs > are not found. > > > Peter > > > > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ > ___________________________________________________________________________________ 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 ___________________________________________________________________________________