From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86380 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: Re: glyph path Date: Thu, 20 Feb 2014 11:57:37 +0100 Message-ID: <5305DFA1.8050404@gmx.net> References: <5304A2D7.7000500@gmx.net> <5304FAD6.90202@gmx.net> <5305C3B7.2080608@wxs.nl> 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 1392893882 12069 80.91.229.3 (20 Feb 2014 10:58:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Feb 2014 10:58:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 20 11:58:12 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 1WGRKV-0006N7-3f for gctc-ntg-context-518@m.gmane.org; Thu, 20 Feb 2014 11:58:11 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5B6E2101F0; Thu, 20 Feb 2014 11:58:10 +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 PigXS71Yodec; Thu, 20 Feb 2014 11:58:08 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id EA720101E6; Thu, 20 Feb 2014 11:58:07 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 14A7F101E6 for ; Thu, 20 Feb 2014 11:58:06 +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 1MHjNTq7jPVI for ; Thu, 20 Feb 2014 11:57:55 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 1D61F101E2 for ; Thu, 20 Feb 2014 11:57:45 +0100 (CET) Original-Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s1KBCl13024471 for ; Thu, 20 Feb 2014 12:12:47 +0100 Original-Received: from [192.168.178.3] ([37.24.148.183]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0LfkUs-1X5SG50KtO-00pK7j for ; Thu, 20 Feb 2014 11:57:43 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: <5305C3B7.2080608@wxs.nl> X-Enigmail-Version: 1.6 X-Provags-ID: V03:K0:8l1jtjl2IlpJWXY6zFLUTx1UdEwk6CtoQxPmcxFh0QJHtxprsez mfvpWdXP/MrlgbEyQMQqG6JoF1RNm7uibtY3RjzanMuTEpyWIFrqoVf2Mms6Q27woAdmUel 6yxIoN3Nu69Kc77AvQsOUP0nP9XdnxgVg5BGM5Fdg6KpSIOYk4tdNtq40qwGokMm2FZgZVf mj4qdrxG/Wl3vJnzuBVQg== X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=212.227.17.22; 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: 01LszcLyq - 1f338040fea7 - 20140220 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:86380 Archived-At: Am 20.02.2014 09:58, schrieb Hans Hagen: > On 2/19/2014 7:41 PM, Peter Rolf wrote: >> 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. > > % macros=mkvi > > \definefont[RatherBig][Mono at 60pt] > > \defineeffect [justone] [alternative=outer,rulethickness=1pt] > \defineeffect [justtwo] [alternative=inner] > > \starttexdefinition example #font#line#text > \hbox { > \framed [offset=\dimexpr#line/2\relax,strut=no,frame=off] { > \definedfont[#font] > \defineeffect[bg][alternative=outer,rulethickness=#line] > \defineeffect[fg][alternative=inner] > \hsmash{\red \effect[bg]{#text}} > \hbox {\blue\effect[fg]{#text}} > } > } > \stoptexdefinition > > \starttext > > {\effect[justone]{\RatherBig BIG}} > > {\effect[justtwo]{\RatherBig BIG}} > > \example{Mono at 60pt}{5pt}{BIG} > > \example{Mono at 80pt}{10pt}{BIG} > > \stoptext > Thanks for this nice example (I wasn't aware of this). But this doesn't really help me with my problem. I guess my example had too much irritating eye candy, so I made another one :-) http://www.wuala.com/indiego/public/ConTeXt/pathtest2.pdf The problem is, that I need direct access to the glyphs path(s), as I must calculate the offset paths for the sub shadows (umbra/penumbra). Inkscape has a similar function called "inset/outset path", if I remember right. In the example I used a negative offset for the umbra shadow (udistance) and a positive for the penumbra shadow (pdistance). The original path is drawn as 'arrowpath'. The path creating algorithm (based on the Tiller-Hanson alg.) works quite good so far, but still needs a lot of tweaking. And glyphs have a wide range of shapes, so they are nearly ideal for testing purposes. Anyhow, it can't be helped, if 'glyph' is not working. I'll test some ConTeXt generated PDF glyphs (MPpage) then and see if I can optimize the manual path creation a little bit. Best wishes, 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 ___________________________________________________________________________________