Khotot/Tutorial

من ويكي عربآيز
نسخة 23:34، 27 يوليو 2007 للمستخدم Hosny (ناقش | مساهمات) (Initial draft, full of spelling mistakes, not very useful yet)
(فرق) → نسخة أقدم | النسخة الحالية (فرق) | نسخة أحدث ← (فرق)
اذهب إلى: تصفح، ابحث

< Khotot

Here we'll samarize the process of developing Arabeyes TrueType fonts.

Requirements

  • FontForge: FontForge is our main font editing and development software, it is a free software. You wil need version 20070723 at least. [1]
  • ...

Get font files

We maintain a set of SFD files (the internal database formate that FF[2] uses).

You can access the files using the web interface; http://cvs.arabeyes.org/viewcvs/art/khotot/sfd/ , or get your local cvs copy:

cvs -d:pserver:anoncvs@cvs.arabeyes.org:/home/arabeyes/cvs login

The password is 'anoncvs' (just like the login name).

 
cvs -z3 -d:pserver:anoncvs@cvs.arabeyes.org:/home/arabeyes/cvs co art/khotot

NOTE: this is about 30MB download.

Diacritic Marks (Harakat)

One of the most annoying proplems is the lack of proper Arabic diacritics support in free fonts (and even most non-free fonts). For a given font, it must provide some features to support Arabic diacritics properly:

  1. The very first feature is to make diacritic marks lay over base glyphs, this is atchived by making diacritic glyphs zero width glyphs.
  2. The ability to set the diacritic mark relative to eatch glyph, as compared with poorly designed fonts where all diacritic marks lay at the same level ragardless to the underlaying base glyph. This can be atchived by using anchor points.
  3. The ability to place Diacrtics properly over ligatures[3].
  4. The ability to place Diacritic marks correctly in relation to eatch other, what so called stacked diacritic marks, like Shadda whith Fatha over it.

Editing the font

FF's Exceute dialog

Setting diacritic marks to Zero width

Open the font with FF, from font view select diacritic glyphs (from U+064B to U+0652). Go to "File -> Execute Script" Dialog, check "FF" check box, they type "SetWidth(0)".

Anchor points

Anchor points are points that is used to tell font rendering engine where to put to glyphs in relation to eatch other [4]. For diacritic positioning we need 3 classes of anchor points:

  • Mark to Base: mark in relation to base glyph, say Dammah over Alef.
  • Mark to Ligature: mark in relation to ligature, say Fathah over Lam Alef.
  • Mark to Mark: mark in relation to another mark, Fathah over Sahaddah for example.



  1. FontForge can be found in its webpage, fontforge.sourceforge.net.
  2. FontForge
  3. A ligature is a compination of two characters into one glyph, the only manatory ligature in Arabic is Lam Alef
  4. FontForge Manual - Overview of Anchors.