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
- 40 Introductions
- 3.7K Typeface Design
- 796 Font Technology
- 1K Technique and Theory
- 615 Type Business
- 444 Type Design Critiques
- 539 Type Design Software
- 30 Punchcutting
- 136 Lettering and Calligraphy
- 83 Technique and Theory
- 53 Lettering Critiques
- 482 Typography
- 301 History of Typography
- 114 Education
- 67 Resources
- 495 Announcements
- 79 Events
- 105 Job Postings
- 148 Type Releases
- 162 Miscellaneous News
- 269 About TypeDrawers
- 53 TypeDrawers Announcements
- 116 Suggestions and Bug Reports