OpenType Layout Features - Feature

Previous  Next

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>




name is a name you can create yourself. You may only 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