What is tag in ApplySubstitution feature at Fontforge

Here is documentation about ApplySubstitution:
ApplySubstitution(script, lang, tag)
All three arguments must be strings of no more than four characters (shorter strings will be padded with blanks to become 4 character strings). For each selected glyph this command will look up that glyph’s list of substitutions, and if it finds a substitution with the tag “tag” (and if that substitution matches the script and language combination) then it will apply the substitution– that is it will find the variant glyph specified in the substitution and replace the current glyph with the variant, and clear the variant.
FontForge recognizes the string “*” as a wildcard for both the script and the language (not for the tag though). So if you wish to replace all glyphs with their vertical variants:
SelectAll()
ApplySubstitution("","","vrt2")
It seems like there are variables for tag and vrt2 is one of them. So, where are the rest? Or tag is just the name of the lookup user created?? If I want to substitute a glyph with another one, how do I do that??? I know the script and Lang variables. Hope someone knows this and guides me in the right direction. Thanks
Comments
-
The tag you are looking for is one of the Feature tags from the OpenType Layout Tag Registry. The feature tag should be chosen to match the intent of your desired glyph substitution.
2 -
Thank you very much Mr. Kutilek. That is the right one. Thanks0
Categories
- All Categories
- 46 Introductions
- 3.8K Typeface Design
- 475 Type Design Critiques
- 555 Type Design Software
- 1.1K Type Design Technique & Theory
- 640 Type Business
- 830 Font Technology
- 29 Punchcutting
- 507 Typography
- 120 Type Education
- 313 Type History
- 74 Type Resources
- 109 Lettering and Calligraphy
- 30 Lettering Critiques
- 79 Lettering Technique & Theory
- 529 Announcements
- 84 Events
- 110 Job Postings
- 165 Type Releases
- 169 Miscellaneous News
- 274 About TypeDrawers
- 54 TypeDrawers Announcements
- 118 Suggestions and Bug Reports