| 1 |
--- |
| 2 |
title: Awami Nastaliq Developer Documentation |
| 3 |
fontversion: 3.200 |
| 4 |
--- |
| 5 |
|
| 6 |
# Short Finals |
| 7 |
|
| 8 |
Another technique to minimize sequence height is to use short versions of final forms. The following glyphs exist for this purpose: |
| 9 |
|
| 10 |
- absJeemFin_short |
| 11 |
- absSeenFin_short |
| 12 |
- absSadFin_short |
| 13 |
- absAinFin_short |
| 14 |
- absQafFin_short, absQafFin_stfh_short |
| 15 |
- absLamFin_short |
| 16 |
- absMeemFin_short |
| 17 |
- absNoonFin_short |
| 18 |
- absChotiyehFin_short, absChotiyehFin_bfkl_short |
| 19 |
- absJeemMed.by_short - this is not a final form, but is used just before a bariyeh which is always a final form |
| 20 |
|
| 21 |
Sequences with and without short finals: |
| 22 |
|
| 23 |
 |
| 24 |
|
| 25 |
_Short (left) and normal (right) finals_ |
| 26 |
|
| 27 |
The tricky thing about these forms is that the glyphs themselves are not the ones that are too high, rather it is a previous glyph in the sequence that is the problem. So this |
| 28 |
information must be recognized at the point of positioning that previous glyph and then propagated down the glyph stream. This is done using a user-defined slot attribute called `tooHigh` (`user3`). |
| 29 |
|
| 30 |
These short forms are not created unless the “Short Forms” feature is set to “Finals” or “All.” (“All” is the default as of version 3.000.) |
| 31 |
|
| 32 |
There are several defined constants that are used to recognize situations where short finals are needed: |
| 33 |
|
| 34 |
- `SHORTFINAL0` - for considering high forms with no nuqta or diacritic |
| 35 |
- `SHORTFINAL1` - for considering high forms with one nuqta or diacritic |
| 36 |
- `SHORTFINAL2` - for considering high forms with two or more nuqtas and/or diacritics |
| 37 |
- `SHORTFINAL_KAF` - for considering high kafs |
| 38 |
|
| 39 |
If the vertical position of the top of the bounding box of the glyph in question is higher than the constant, a short final is appropriate. These values were determined empirically based on the ascent of the font and the sizes of various glyphs. |
| 40 |
|
| 41 |
Note that short kafs and short finals are two different ways of solving the same problem. If the “Short Forms” feature is set to “All,” the result for a tall sequence may be a short kaf, a short final, or both--depending on the height of the sequence and whether the final character is one that can be shortened. |
| 42 |
|
| 43 |
------ |
| 44 |
|
| 45 |
<< Previous: [Alternate Height Kafs and Gafs](dev09_altkafs.md) | [Introduction and Index](dev01_intro.md) | Next: [Testing](dev11_testing.md) >> |
| 46 |
|
| 47 |
<!-- PRODUCT SITE ONLY |
| 48 |
[font id='awami' face='AwamiNastaliq-Regular' size='150%' rtl=1] |
| 49 |
[font id='awamiL' face='AwamiNastaliq-Regular' size='150%' ltr=1] |
| 50 |
--> |