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
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
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 ____________________________________________________________ _______________________
On Mon, 1 May 2017 21:20:33 -0400
Mohammad Hossein Bateni
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
participants (3)
-
Alan Braslau
-
Jeong Dal
-
Mohammad Hossein Bateni