AAT feature names in Typography dialog

nickshanks's picture

More AAT troubles for you to point and laugh at, sorry for this, but I'm just a beginner.

Anyway, I can't seem to get my Typography dialog to display the right titles for things. To see what i get, have a look at http://web.nickshanks.com/Name%20Errors.jpg
In summary, the string from Setting is being used for the whole group, rather than just that setting, and for non-exclusive options, it does not appear next to the checkbox.
For reference, the top of the palette is supposed to look like this:

Ligatures 
[ ] Diphthong Ligatures
[ ] Icelandic Ligatures
-----------------
Letter Case
( ) No Change
( ) All Capitals
etc...



What am i doing wrong?
I tried putting dummy noncontextual headers in the MIF with no content and setting code 0, but these were ignored by ftxenhancer when updating the font (I've not tried using AATFontTool under classic yet, will do so while I await a reply :-). Any suggestions?

twardoch's picture

Nicholas,

I have run into the same problem. I'm pretty sure that the ftxenhancer application has a bug so it assignes wrong names to wrong features. It's essentially "off by one". In a font I was trying to build, it assigned the small caps feature to the standard ligatures caption, the standard ligatures feature to the discretionary ligatures caption, the discretionary ligatures to the swash caption etc.

You may have luck by decompiling the font using TTX (http://www.font.org/software/ttx/ ) and manually correcting the "feat" and "name" tables.

Adam

bsleeper's picture

Yes, it is a bug in ftxenhancer. It is assigning each item in the feat table a value from the name table that is one too high. For example, if it should give you item 271 from the table, it's giving you item 272 instead. I'm guessing the code incorrectly started counting items at 1 rather than 0.

You can work around it (and I do) by dumping the feat table as XML, fixing the ID references, and then fusing it back into place. If you automate this with a script, it's not so bad.

Use:

1. ftxdumperfuser -t feat -o myname.feat.xml -f 'My Font Full Name' myfont.dfont (or myfont.ttf or whatever)

2. Edit the table with BBEdit or whatever. You're looking for lines that start with featType; you'll have one for each feature type in the font. Here's an example from one of my fonts:

<featType type="10" settingCount="4" settingOffset="00000080" flags="8000" isExclusive="YES" nameIndex="263" name="Vertical Position">

Subtract one from the "nameIndex" property. In this case, 263 would become 262.

Don't edit the featSelector items (which are the specific actions in your font), however!! Their indexes are correct.

3. ftxdumperfuser -t feat -d myfont.feat.xml -f 'My Font Full Name' myfont.dfont

That's it.

Note that the only difference in the two command lines is the -o vs. -d flag. Also, if you're not using a multi-font suitcase (.dfont), you can omit the -f 'My Font Full Name' part of the command.

Brent

bsleeper's picture

Also, a (perhaps?) little-known fact: your TrueType fonts can support both OpenType and AAT features at the same time; they each are stored in separate tables in the font file.

Generate your font as a .ttf or .dfont with OT features from FontLab or wherever, then post-process with the ftx tools to add your desired AAT features.

It's double the work, but until Apple adopts OpenType in its native text routines, it's a way to provide typographic functions in both InDesign and Apple apps (such as Pages).

twardoch's picture

Brent,

I will jump in here with some breaking news. We at Fontlab Ltd. have just released TransType Pro 3, a new professional font converter: http://www.fontlab.com/

One of its very cool features includes the conversion of GX/AAT advanced typographic features into OpenType features. The converted font that TransType outputs will contain only the OpenType layout tables, but a following scenario is possible:

1. You use FontLab 4.6 to create a font in OpenType PS (.otf) or OpenType TT / TrueType (.ttf) format without any features.

2. You create a MIF file that contains GX/AAT features and add them to the font using ftxenhancer. If needed, you correct the bugs produced by ftxenhancer.

3. You use TransType Pro 3 to convert the OpenType font with GX/AAT features into a font with OpenType features. The conversion does not 100% of all GX/AAT features, but a quite fair number, including some contextual features. I believe you can convert directly into FontLab's VFB format as well that will include the OpenType features code in source FEA notation but have not been able to verify it now.

4. (Optional) You open the font in FontLab. FontLab will decompile the OpenType features into source code and you tweak them manually. You generate a new OpenType font that includes the OpenType features.

5. You use ftx enhancer once again (with the same MIF file) to add the GX/AAT features to the new font. The resulted font will include both OpenType and GX/AAT features.

If you use the process, you will end up with only needing to write the MIF file from scratch. TransType Pro 3 will generate the OpenType features for you.

And to answer your questions in advance: TransType Pro 3 does not do the features conversion in the other direction, i.e. from OpenType features into GX/AAT features.

Regards,
Adam Twardoch
Fontlab Ltd.

Ps. See you at TypoTechnica in London! I'm leaving to the airport in an hour :-)

twardoch's picture

> I believe you can convert directly into
> FontLab's VFB format as well that will
> include the OpenType features code in
> source FEA notation but have not been
> able to verify it now.

Sorry, I was mistaken. This is not possible. TransType Pro 3 can convert *from* FontLab VFB but not into this format. Not however that TransType Pro 3 includes a similar conversion engine as FontLab Studio 5 so those of you who don't want to wait for FontLab Studio 5, can save their fonts in FontLab into the VFB format and use TrT Pro to generate their fonts.

Adam

John Nolan's picture

Adam:
What does TransType do with GX variations?

blairyo's picture

In OS 8.6;
By default, the AAT Font Tool adds features for Icelandic Ligatures, Multiply glyph and Hyphen to Minus. The AAT Font Tool does not append the Dipthong Ligatures feature, but its predecessor the GXifier does.

To add the Dipthongs feature, append this MIF;

Type LigatureList
Name Ligatures
Namecode 1
Setting Dipthong Ligatures
Settingcode 10
Default no
Orientation HV
Forward yes
Exclusive no

List
ae a e
oe o e
AE A E
OE O E

Fontographer does strange things with fonts. In the test font, it deleted Multiply and y acute, but when the same font was saved as in TypeTool and AAT-enabled, the Icelandic Ligs, Multiply and Minus features worked.

Re: FontLab

Adam,
a feature request for FontLab or TransType Pro 3;
maybe it's too much to ask, but it would be very useful if an AAT font could be converted to a dual-format AAT/OT font in a single step.

Also, FontLab opens GX/AAT variations fonts, but can it create a variations font? If not, is there any chance of adding this? GX Variations are potentially very useful, but I

Syndicate content Syndicate content