From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/54314 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: MetaPost integration: default parameters Date: Sat, 14 Nov 2009 01:20:58 +0100 Message-ID: <6faad9f00911131620v5b066fe6t90d653becc2d34@mail.gmail.com> References: 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: ger.gmane.org 1258158166 21768 80.91.229.12 (14 Nov 2009 00:22:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Nov 2009 00:22:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 14 01:22:39 2009 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.50) id 1N96PU-0007gg-2D for gctc-ntg-context-518@m.gmane.org; Sat, 14 Nov 2009 01:22:36 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9486BC9B35; Sat, 14 Nov 2009 01:20:13 +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 ts1O0LsnAPVc; Sat, 14 Nov 2009 01:20:13 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C610BC9B03; Sat, 14 Nov 2009 01:19:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4C0AAC9B03 for ; Sat, 14 Nov 2009 01:19:22 +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 aUp-QykqJYpn for ; Sat, 14 Nov 2009 01:18:54 +0100 (CET) Original-Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by balder.ntg.nl (Postfix) with ESMTP id 31ED4C9AF9 for ; Sat, 14 Nov 2009 01:18:49 +0100 (CET) Original-Received: by fxm10 with SMTP id 10so4061758fxm.34 for ; Fri, 13 Nov 2009 16:20:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=vOw/XX5zq10Xq7iV6Ty8ZlZOUXI3h0Tte1nlUYpeIt4=; b=hzPUO9auOvjx63iea6twRTEKYapqrQyHtPc0Apn75c54T/UMhbtvZuBXz6Augn/ALt o6ctXm0WQ10DBruA/bfNyQgk8+MWRNqRP9Cp/25hxIqBhz8vYxV11apsNwB9/9ghHRtx ujIfA7iD6znt4jnxKcb4wBrVQGn7WPSd5NmHM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ONFkEfa05Z7QihwPrhUHZ/lwPZqlVyODpY5MeNRSeGxq6ZagIB+1wYs6iMzlA08eTt RxZcL3cVe/ubROoetj9UBds8p1cOVJti8GDUwryQ3s6FGeFSnn7Ba3DR9cajbU4fSt1z DeRYCS2uBFAWK+KRXjODj/VS92zN/vY/AlEyM= Original-Received: by 10.216.87.12 with SMTP id x12mr145109wee.48.1258158058176; Fri, 13 Nov 2009 16:20:58 -0800 (PST) In-Reply-To: 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:54314 Archived-At: On Fri, Nov 13, 2009 at 17:53, Oliver Buerschaper wrote: > > Also, is there a way to directly get the glyph outlines of, say, > $\bigotimes$ in MetaPost code and use it to derive some length unit from it? Yes, but this only works for Type1 fonts, not for OpenType. The example below is a literal copy from metapost manual (created by Taco). You first search in the source for that glyph: \definemathsymbol [bigotimes] [op] [ex] ["4E] % this equals 78 in decimal notation and then you need either name or number of glyph + name of font. fontmapfile "=lm-math.map"; beginfig(1); picture q; path p; interim ahlength := 12bp; interim ahangle := 25; q := glyph 78 of "lmex10" scaled .2; % q := glyph "circlemultiplytext" of "lmex10" scaled .2; % cheat by looking at lm-mathex.enc 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; end. 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 ___________________________________________________________________________________