Problems with arabic font "Amiri"
Hello, I tried to type with the arabic font "Amiri" by K. Hosny. You can download it here: http://sourceforge.net/projects/amiri/ In this download-page you find a nice example of the font, setting the sura "Al-Fatiha" (first section of the Holy Qur'an). I tried to regain this example with ConTeXt, but failed. Here is my try: \definefont[amiri][file:amiri-regular.ttf*arabic at 17pt] \define[1]\Arab{\amiri#1} \starttext \Arab{بِسْمِ اللَّـهِ الرَّحْمَـٰنِ الرَّحِيمِ} \stoptext But that doesn't compile here. I get this error: ! LuaTeX error .../context/tex/texmf-context/tex/context/base/font-otp.lua:163: invalid value (nil) at index 2 in table for 'concat' stack traceback: [C]: in function 'concat' .../context/tex/texmf-context/tex/context/base/font-otp.lua:163: in function 'pack_indexed' .../context/tex/texmf-context/tex/context/base/font-otp.lua:328: in function 'enhancer' .../context/tex/texmf-context/tex/context/base/font-otf.lua:258: in function 'enhance' .../context/tex/texmf-context/tex/context/base/font-otf.lua:462: in function 'load' .../context/tex/texmf-context/tex/context/base/font-otf.lua:1946: in function 'otftotfm' .../context/tex/texmf-context/tex/context/base/font-otf.lua:1973: in function <.../context/tex/texmf-context/tex/context/base/font-otf.lua:1972> (...tail calls...) .../context/tex/texmf-context/tex/context/base/font-def.lua:298: in function 'loadfont' .../context/tex/texmf-context/tex/context/base/font-ctx.lua:469: in function 'loadfont' .../context/tex/texmf-context/tex/context/base/font-def.lua:412: in function 'read' .../context/tex/texmf-context/tex/context/base/font-ctx.lua:965: in function 'definefont_two' [string "\directlua "]:1: in main chunk. system > tex > error on line 5 in file Namenlos-1.tex: LuaTeX error ... +++++++++++++++++++++++++++++++++++++++++++ 1 \definefont[amiri][file:amiri-regular.ttf*arabic at 17pt] 2 \define[1]\Arab{\amiri#1} 3 4 \starttext 5 >> \Arab{بِسْمِ اللَّـهِ الرَّحْمَـٰنِ الرَّحِيمِ} 6 \stoptext 7 8 9 10 11 12 13 14 15 \ctxcommand #1->\directlua {commands.#1} \font_helpers_low_level_define ..._designsize " )} \edef \somefontspec {at \n... \font_basics_define_font_without_parameters ...ic \csname \v_font_identifier... \Arab #1->\amiri #1 l.5 ...��حْمَـٰنِ الرَّحِيمِ} ? +++++++++++++++++++++++++++++++++++++++++++++++ What is the problem here? Huseyin
On 5/8/2013 7:41 AM, "H. Özoguz" wrote:
Hello,
I tried to type with the arabic font "Amiri" by K. Hosny. You can download it here: http://sourceforge.net/projects/amiri/
In this download-page you find a nice example of the font, setting the sura "Al-Fatiha" (first section of the Holy Qur'an). I tried to regain this example with ConTeXt, but failed.
works ok here (in latest beta) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
"H. Özoguz"
-
Hans Hagen