I am a Newbie. I am trying to teach myself how to do glyph substitution. Nothing I try works. So I made a simple test font. The font contains two glyphs: an “a” and a “b”. I’m trying to write a custom script that will substitute a “b” every time I type an “a”. My custom script is below. Can anyone tell me what I’m doing wrong? Thanks very much!
script latn {
Latin
feature GlyphCompositionDecomposition;
}
feature GlyphCompositionDecomposition ccmp {
Glyph Composition / Decomposition
lookup Lookup1;
}
lookup Lookup1 {
Referenced by feature “GlyphCompositionDecomposition”
There’s a lot to learn, so if we know your final aim we can direct you to the best place to start. I am self-taught, not an expert on OpenType features, so I had to learn by trial and error.
Not all applications support opentype features, or they may not be enabled by default. If you want to test your script, I recommend testing it in your webbrowser as a webfont. Simply press CTRL+F5 from within fontcreator to create a demo page to view and test your features.
I just tried that and it works well with the test font that I made.
One point: I usually use the screen at 800 pixels by 600 pixels and I needed to resize the screen resolution to 1024 by 768 to get everything on the screen at the left.
That was no problem, I am not complaining.
I am just mentioning it in case anyone else is using the screen usually at 800 pixels by 600 pixels.
Thanks for your suggestions! It seems like my problem all along has been that I’m using MS Word 2007 as my font client. When I tried the CTRL-F5 technique my font worked!
I have just made a test font using your script and tried it in Serif PagePlus X6. It works correctly.