Arabic fonts

From ConTeXt wiki
Jump to: navigation, search

TODO: more typescripts for common Arabic fonts. (See: To-Do List)


Contents

Arabic Typesetting

Typescript file:

\definefontfeature
 [fea]
 [mode=node,language=dflt,script=arab,
  init=yes,medi=yes,fina=yes,isol=yes,
  liga=yes,dlig=yes,rlig=yes,tlig=yes,
  calt=yes,trep=yes,mark=yes,mkmk=yes,
  kern=yes,curs=yes]

\starttypescript [serif] [arabtype]
 \definefontsynonym [Arabtype-Light]       [name:ArabicTypesetting] [features=fea]
 \definefontsynonym [Arabtype-Bold]        [name:ArabicTypesetting] [features=fea]
 \definefontsynonym [Arabtype-Italic]      [name:ArabicTypesetting] [features=fea]
 \definefontsynonym [Arabtype-Bold-Italic] [name:ArabicTypesetting] [features=fea]
\stoptypescript

\starttypescript [serif] [arabtype]
 \usetypescript[serif][fallback]
 \definefontsynonym [Serif]                [Arabtype-Light]         [features=fea]
 \definefontsynonym [SerifItalic]          [Arabtype-Italic]        [features=fea]
 \definefontsynonym [SerifBold]            [Arabtype-Bold]          [features=fea]
 \definefontsynonym [SerifBoldItalic]      [Arabtype-Bold-Italic]   [features=fea]
\stoptypescript

\starttypescript [Arabtype]
  \definetypeface [Arabtype] [rm] [serif] [arabtype] [default] 
\stoptypescript 

Usage:

\usetypescriptfile[type-arabtype] % file name
\usetypescript[Arabtype]
\setupbodyfont[Arabtype,20pt]

Arabeyes.org fonts

...

Iran Nastaliq

See [1] for more info about the font (and a download link)

Typescript file:

\definefontfeature
   [fea]
   [mode=node,language=dflt,script=arab,
    init=yes,medi=yes,fina=yes,isol=yes,
    calt=yes,ccmp=yes,cswh=yes,trep=yes,
    tlig=yes,rlig=yes,curs=yes,kern=yes,
    mark=yes]

\starttypescript [serif] [irannastaliq]
 \definefontsynonym [IranNastaliq-Light]       [name:IranNastaliq]        [features=fea]
 \definefontsynonym [IranNastaliq-Bold]        [name:IranNastaliq]        [features=fea]
 \definefontsynonym [IranNastaliq-Italic]      [name:IranNastaliq]        [features=fea]
 \definefontsynonym [IranNastaliq-Bold-Italic] [name:IranNastaliq]        [features=fea]
\stoptypescript

\starttypescript [serif] [irannastaliq]
 \usetypescript[serif][fallback]
 \definefontsynonym [Serif]                    [IranNastaliq-Light]       [features=fea]
 \definefontsynonym [SerifItalic]              [IranNastaliq-Italic]      [features=fea]
 \definefontsynonym [SerifBold]                [IranNastaliq-Bold]        [features=fea]
 \definefontsynonym [SerifBoldItalic]          [IranNastaliq-Bold-Italic] [features=fea]
\stoptypescript

\starttypescript [IranNastaliq]
  \definetypeface [IranNastaliq] [rm] [serif] [irannastaliq] [default] 
\stoptypescript

Usage:

\usetypescriptfile[type-irannastaliq] % file name
\usetypescript[IranNastaliq]
\setupbodyfont[IranNastaliq,20pt]

Nafees Nastaleeq

Free (GPL) Nasta`liq font, http://www.crulp.org/software/localization/Fonts/nafeesNastaleeq.html

Typescript file:

\definefontfeature
 [fea]
 [mode=node,language=dflt,script=arab,
  init=yes,medi=yes,fina=yes,isol=yes,
  calt=yes,rlig=yes,tlig=yes,trep=yes,
  curs=yes,kern=yes,mark=yes]

\starttypescript [serif] [nafeesnastaleeq]
 \definefontsynonym [NafeesNastaleeq-Light]       [name:NafeesNastaleeq]        [features=fea]
 \definefontsynonym [NafeesNastaleeq-Bold]        [name:NafeesNastaleeq]        [features=fea]
 \definefontsynonym [NafeesNastaleeq-Italic]      [name:NafeesNastaleeq]        [features=fea]
 \definefontsynonym [NafeesNastaleeq-Bold-Italic] [name:NafeesNastaleeq]        [features=fea]
\stoptypescript

\starttypescript [serif] [nafeesnastaleeq]
 \usetypescript[serif][fallback]
 \definefontsynonym [Serif]                       [NafeesNastaleeq-Light]       [features=fea]
 \definefontsynonym [SerifItalic]                 [NafeesNastaleeq-Italic]      [features=fea]
 \definefontsynonym [SerifBold]                   [NafeesNastaleeq-Bold]        [features=fea]
 \definefontsynonym [SerifBoldItalic]             [NafeesNastaleeq-Bold-Italic] [features=fea]
\stoptypescript

\starttypescript [NafeesNastaleeq]
  \definetypeface [NafeesNastaleeq] [rm] [serif] [nafeesnastaleeq] [default] 
\stoptypescript

Usage:

\usetypescriptfile[type-nafees] % file name
\usetypescript[NafeesNastaleeq]
\setupbodyfont[NafeesNastaleeq,20pt]

C O N T E X T G A R D E N

Personal tools
Namespaces
Variants
Actions
Help
External Help
Installation
Navigation
Toolbox