OpenType Layout Features - Feature

<< Click to Display Table of Contents >>

Navigation:  Editing Fonts > Format > OpenType Layout Features > Script Editor > Script Syntax >

OpenType Layout Features - Feature

The feature keyword is used in two ways: To reference a feature and to declare a feature. A feature is referenced from a script block to indicate the specified feature is available in that script.

Referencing a feature:

script <tag> {

 feature MyLigatures; # referencing feature "MyLigatures"

}

 

Declaring a feature:

feature <name> <tag> {

 <feature declaration>

}

 

Where:

name is a name you can create yourself. You may only use a-z, A-Z, 0-9 and "_" in your name. Names are case-sensitive, and may only be declared once.

tag is one of the feature tags defined on the Microsoft list of feature tags. A full list of available tags can be found at http://www.microsoft.com/typography/otspec/featurelist.htm