Quote:
Originally Posted by Jellby
No need to blindly try all possible numbers (or no need to do it slowly, at least). You can find the effect with something like FontForge. Please forgive me if you already know and have tried this.
Take a font like Unifraktur Maguntia (which is full of alternate glyphs) as an example. Open it in FontForge, and go to Window > New Metrics Window. Type the letters you want to find swashes for (e.g. "AGKNSY"), and then you toggle the different sets in the left column (Ctrl+click to keep the previous selection as you activate a new one). You'll find that "aalt" activates the alternate forms for all these letters, "cv04" activates the modern "A", "cv05" and "cv06" for "G" and "K", etc. There's probably something similar (but maybe less exhaustive and well documented) for your font. I guess you can't share it? You can examine the substitution tables in Element > Font Info > Lookups, but you probably won't want to do that. There must be some tool that gives you a dump of the tables in text format for easier examination (a custom-made python script at least).
Still, it won't work in devices/format that don't support/ignore OpenType features, but it should degrade nicely (i.e. simply show swash-less variants).
If they must be enabled on a case-by-case basis, yes. But if you just want to use the swash variants when they're available and the normal variants when they aren't, you can simply enable "swsh" for the whole element. Try writing the full text in FontForge and see how it behaves. Suppose only capital letters have swash variants, then you could have:
Code:
<h1>This Is A Title</h1>
with the "swsh" feature enabled for the whole h1, and the "T"s, "I" and "A" will be swash. But if you want only the first "T" to be swash and not the second... then you'd need a span or something to individualize them. An extreme case would be something like Zapfino, where each letter has several variants and you can choose a different one for each instance.
|
Jellby:
I'm going to reach out to you,privately, and show you the font. It's a bloody nightmare and here's a weird one--I've made it work, in Azardi. But ixnay (not) in KP3, despite the fact that Doits' Bulgarian special use fonts worked in KP3. That gets right up my nose! P.S, and here's a poser--I cannot FIND the particular swash that the customer demanded, for an upper-cae E, in the New Metrics Window--as if it doesn't exist. If I use the Swsh category, in the CSS, the file works in Azardi. But wait, there's more--it works even though the font was subset. Now, explain
THAT one to me!
So, yes: a glyph I cannot find, at all, in FontForge, works in an ePUB, even though some other glyph, that is not the glyph I seek, was called and it/they work---even though the font was subset, which means that the glyphs oughtn't be there at all. Nor can I see or find any aalt (per Doits' comments) to show me "all" the alternatives. (I wonder if that's only alts with hex or code points?)
Do I know how to have a good time, or what?
GRRRRRRRRRRRRRRRRRRRRRR, I don't like it
when files disobey. I really, really
don't.