Jump to content
Join our community of friends of typography!

OT 'ignore' lookup

Recommended Posts

behnam
This topic was imported from the Typophile platform

Hi,
Let's say I want a substitution except after a space or at the beginning of the line.
I write something like this:

lookupflag IgnoreMarks, RightToLeft;
ignore sub space A';
sub A' B by C;

How do I include the beginning of the line in the 'ignores'?

Link to comment
Stephen Rapp

Create 2 classes for your lookups. One could be called @All and include all letters including the space. The other can be called @Letters and include all letters, but no space.

Sample:

lookup calte_start1 {
ignore sub @All e';
sub e' @Letter by e.start;
} calte_start1;

Stephen

Link to comment
Stephen Rapp

I used it for fonts with well over 600 glyphs. Shouldn't be a real problem. Look at some of the feature code for Bickham. Its like an encyclopedia. Most people using OT fonts with graphic applications like InDesign are gonna have pretty fast computers.

Link to comment
behnam

Oh the font is big but it's not professional. Actually it is intended mostly for the web. It already gives a heavy workout to the CPU just by being Arabic! I try to trim down everywhere I can.
In my specific case, I think I'll use your solution but backward. I skip the 'ignore' thing and for my substitution, I create a class after which it will be applied. The list of glyphs in that class will be much much shorter than 'everything else' class.
But it's odd that OT doesn't have a specific solution for the beginning and the end of the line.
-B

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Our partners

The largest selection of professional fonts for any project. Over 130,000 available fonts, and counting.
Get to your apps and creative work. Explore curated inspiration, livestream learning, tutorials, and creative challenges.
Discover the Best Deals for Freelance Designers.
Discover the fonts from the Germany foundry FDI Type. A brand of Schriftkontor Ralf Herrmann.
Uberschrift: a typeface with 200 ligatures
×
×
  • Create New...

Important Information

We are placing functional cookies on your device to help make this website better.