Re: [NTG-context] getting the glyph of a character
On Mon, 1 May 2017 21:20:33 -0400 Mohammad Hossein Bateni wrote: > MetaPost's documentation mentions that glyph operator works on Adobe > Type 1 fonts. Does it also work with OpenType fonts when used from > within LuaTeX and CONTEXT? The metafun manual gives many ways of manipulating text. (the metapost "glyph" operator is a bit archaic...) Alan ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] getting the glyph of a character
MetaPost's documentation mentions that glyph operator works on Adobe Type 1 fonts. Does it also work with OpenType fonts when used from within LuaTeX and CONTEXT? On Mon, May 1, 2017 at 7:36 PM, Jeong Dal wrote: > Dear all, > > First of all, the sample code is working under the ConTeXt > beta(standalone) installed in my notebook. > I am very sorry to send mails of false result. > > I found the file “lm-ec.map” installed in the ConTeXt beta(standalone), > and I don’t know why it was not working in the iMac. I have to check the > installation. > > However, I’d like to know how to make map files of the fonts in the system > for which the map file is not provided? > > Thank you for reading. > > Best regards, > > Dalyoung > > > \startbuffer[outline] > fontmapfile "=lm-ec.map"; > %beginfig(56); > picture q; > path p; > interim ahlength := 12bp; > interim ahangle := 25; > q := glyph “E" of "ec-lmr10" scaled .2; > %draw q; > for item within q: > p := pathpart item; > draw p withcolor (.6,.9,.6) > withpen pencircle scaled 1.5; > endfor > \stopbuffer > > \starttext > \processMPbuffer[outline] > \stoptext > > ___ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] getting the glyph of a character
Dear all, First of all, the sample code is working under the ConTeXt beta(standalone) installed in my notebook. I am very sorry to send mails of false result. I found the file “lm-ec.map” installed in the ConTeXt beta(standalone), and I don’t know why it was not working in the iMac. I have to check the installation. However, I’d like to know how to make map files of the fonts in the system for which the map file is not provided? Thank you for reading. Best regards, Dalyoung \startbuffer[outline] fontmapfile "=lm-ec.map"; %beginfig(56); picture q; path p; interim ahlength := 12bp; interim ahangle := 25; q := glyph “E" of "ec-lmr10" scaled .2; %draw q; for item within q: p := pathpart item; draw p withcolor (.6,.9,.6) withpen pencircle scaled 1.5; endfor \stopbuffer \starttext \processMPbuffer[outline] \stoptext ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] getting the glyph of a character
Dear all, In the previous mail, I tested the given code under the ConTeXt beta(standalone) which has no file “lm-ec.map” installed, so I couldn’t get the result. But the following sample is working under MKIV in TeXlive 2016. It looks great. I guess that it is also working any font if the map file is provided. If my guess is true, is it possible to make map files of the fonts in the system? Thank you for reading. Best regards, Dalyoung \startbuffer[outline] fontmapfile "=lm-ec.map"; %beginfig(56); picture q; path p; interim ahlength := 12bp; interim ahangle := 25; q := glyph “E" of "ec-lmr10" scaled .2; %draw q; for item within q: p := pathpart item; draw p withcolor (.6,.9,.6) withpen pencircle scaled 1.5; endfor \stopbuffer \starttext \processMPbuffer[outline] \stoptext ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] getting the glyph of a character
Dear all. At page 50-52 of the manual of metapost, “Mpman”, it is explained to get a glyph of font using the command ‘glyph'. glyph ⟨numeric expression⟩ of ⟨string expression⟩ glyph ⟨string expression⟩ of ⟨string expression⟩ . Is it possible to do the similar thing in metafun? I couldn’t make it happen using the following code. \startbuffer[outline] %fontmapfile "=lm-ec.map"; picture q; path p; interim ahlength := 12bp; interim ahangle := 25; q := glyph 100 of "ArialMT"; %nfont defaultfont scaled defaultscale; draw q; \stopbuffer \starttext \processMPbuffer[outline] \stoptext if the first line “fontmapfile …” is alive, then fatal error occurred. Without it, it is running without error, but no output at all. I copied the sample code in mpman below. Thank you for reading. Best regards, Dalyoung 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; > 2017. 4. 30. 오후 7:00, ntg-context-requ...@ntg.nl 작성: > > Send ntg-context mailing list submissions to > ntg-context@ntg.nl > > To subscribe or unsubscribe via the World Wide Web, visit > https://mailman.ntg.nl/mailman/listinfo/ntg-context > or, via email, send a message with subject or body 'help' to > ntg-context-requ...@ntg.nl > > You can reach the person managing the list at > ntg-context-ow...@ntg.nl > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of ntg-context digest..." > > > Today's Topics: > > 1. Re: Wrong redirection in contextgarden.net (Mojca Miklavec) > 2. Re: Wrong redirection in contextgarden.net (Nicola) > 3. Re: Wrong redirection in contextgarden.net (Mojca Miklavec) > 4. High-level command for translated names (Henri Menke) > 5. Re: High-level command for translated names (Wolfgang Schuster) > > > -- > > Message: 1 > Date: Sat, 29 Apr 2017 18:05:14 +0200 > From: Mojca Miklavec > To: mailing list for ConTeXt users > Subject: Re: [NTG-context] Wrong redirection in contextgarden.net > Message-ID: > > Content-Type: text/plain; charset=UTF-8 > > On 29 April 2017 at 09:47, Nicola wrote: >> For a while now, when I connect to contextgarden.net, I get redirected >> to wiki.contextgarden.net// (note the double slash). Is it just me, or >> something to be fixed in the web site? > > The server uses >RedirectMatch permanent ^(.*)$ http://wiki.contextgarden.net/$1 > > I'm looking for a better suggestion. > > Mojca > > > -- > > Message: 2 > Date: Sat, 29 Apr 2017 20:25:20 +0200 > From: Nicola > To: ntg-context@ntg.nl > Subject: Re: [NTG-context] Wrong redirection in contextgarden.net > Message-ID: > Content-Type: text/plain; charset=utf-8; format=flowed > > On 29/04/2017 18:05, Mojca Miklavec wrote: >> On 29 April 2017 at 09:47, Nicola wrote: >>> For a while now, when I connect to contextgarden.net, I get redirected >>> to wiki.contextgarden.net// (note the double slash). Is it just me, or >>> something to be fixed in the web site? >> >> The server uses >>RedirectMatch permanent ^(.*)$ http://wiki.contextgarden.net/$1 >> >> I'm looking for a better suggestion. > > Wouldn't just > > Redirect permanent / http://wiki.contextgarden.net/ > > do? (It may be recursive if the virtual host is the same.) > > If not, how about: > > RedirectMatch permanent ^/(.*)$ http://wiki.contextgarden.net/$1 > > As a last resource, mod_rewrite should work: > > RewriteEngine on > RewriteCond %{HTTP_HOST} ^contextgarden\.net$ [NC] > RewriteRule ^(.*)$ http://wiki.contextgarden.net/$1 [R=301,L] > > Nicola > > > > > -- > > Message: 3 > Date: Sat, 29 Apr 2017 21:29:06 +0200 > From: Mojca Miklavec > To: mailing list for ConTeXt users > Subject: Re: [NTG-context] Wrong redirection in contextgarden.net > Message-ID: > > Content-Type: text/plain; charset=UTF-8 > > On 29 April 2017 at 20:25, Nicola wrote: >> On 29/04/2017 18:05, Mojca Miklavec wrote: >>> >>> On 29 April 2017 at 09:47, Nicola wrote: For a while now, when I connect to contextgarden.net, I get redirected to wiki.contextgarden.net// (note the double slash). Is it just me, or something to be fixed in the web site? >>> >>>