OpenType programming

joelsantos
12.Feb.2008 10.45am
joelsantos's picture

I'm new at OpenType well... really new.. i don't know how to do anything.
The question i have is for the " " how can i change the first one for a glyph and the last one for other glyph so it will have like a "open" and a "close"
Can anyone tell me?

Left and Right quotes are not OpenType specific. You'll find quotedblleft and quotedblright glyphs in PostScript and TrueType formats.


I see... hmm but why then when i go to the preview and do " still ask me for the glyph quotedbl? I've done those glyphs you said already...

Do you know where i can learn "OpenType" language?

Joel Santos // youremin
sound & visual


I see... hmm but why then when i go to the preview and do " still ask me for the glyph quotedbl? I've done those glyphs you said already...

Do you know where i can learn "OpenType" language?

Joel Santos // youremin
sound & visual


Joel,

since the "plain" pseudo-quotes are separate characters from the "typographic" quotes, separately encoded in Unicode, a transformation from "plain" pseudo-quotes to "typographic" quotes should be done on the character level, by an application -- not on the glyph level in your font. Note that quotation rules are different for different languages. If your text is in English, then the typographic quotes “are like this” but if your text is in German, then the typographic quotes „are like this“. Each language has its own specifics, and it is up to the application's (or up to the keyboard driver) to take those specifics into account. It would be very inefficient to expect that every OpenType font should carry quotation rules for dozens or even hundreds of languages, and it would be very difficult to maintain/fix/update this kind of information once the font is released. This is why the stuff does not belong in the font.

FontLab Studio uses the AFDKO (Adobe FDK for OpenType) syntax for defining the OpenType Layout features.

Some pointers for learning the "OpenType language"

Regards,
Adam


Hey Adam, can you move all of that over to the Wiki?


Thanks twardoch didn't know that it was diffferent for other languages here in Portugal we use the same method as English ( i think).
A lot of people of told me about Leslie's book but it is kind of expensive for someone that is starting... at least i find it in amazon for 100 dollars ( http://www.amazon.com/Learn-FontLab-Fast-Leslie-Cabarga/dp/0965762858/re... ). Here in Portugal I can't even find it. I'm starter and i just study don't have much money, the money from the works i do on youremin isnt much since the work isn't much and when i got the money i have to buy a lot of stuff. But about books what you council me? What books should i get for design or for typo ?

Joel Santos // youremin
sound & visual


‘[…] FontLab Studio uses the AFDKO (Adobe FDK for OpenType) syntax for defining the OpenType Layout features. [...]’

And so does DTL FontMaster. It generates the applicable OpenType Layout features like:

# --- FEATURE SUMMARY
# --- Substitution
# aalt: access all alternates
# smcp: lc to smallcaps
# c2sc: caps to smallcaps
# case: uppercase, math and punct shift up
# titl: replaces default glyphs with .titling variations
# onum: changes to oldstyle figures
# lnum: changes to lining figures
# pnum: changes to proportional figures
# tnum: changes to tabular figures
# crcy: replaces any currency char with any other
# sups: makes numbers superior
# sinf: makes numbers inferior
# numr: replaces selected figures with numerators
# dnom: replaces selected figures with denominators
# frac: substitutes the existing fractions
# dpng: dipthong subs
# liga: standard lig replacement
# salt: replaces glyphs with alternate variations
# dlig: discretionary ligatures
# ordn: subs ordinal glyphs after numbers
# ornm: allows access to ornaments
# zero: slashed zero

automatically if there are matching characters in the font. All other features will be removed during generation. Basically one can use any features file that uses the AFDKO syntax and has a matching character naming convention after adding three lines. Everything that is covered by the FDK/SDK will be in the font then, as I showed during the presentation together with Miguel Sousa at the ATypI TypeTech Forum in Brighton last year.


Frank,

you do know that the "crcy" and "dpng" features have been removed from the OpenType specification version 1.25 back in July 2000? Generating fonts with those features makes them contradict the current OpenType standard, so I'm puzzled why DTL FontMaster tries to make them. If it really does generate them, it looks like all fonts made with DTL FontMaster so far that carry those features are not compliant with the most recent OpenType specifications 1.25, 1.3 and 1.4.

Adam


‘[…] FontLab Studio uses the AFDKO (Adobe FDK for OpenType) syntax for defining the OpenType Layout features. [...]’

And so does DTL FontMaster. It generates the applicable OpenType Layout features like:

# —- FEATURE SUMMARY
# —- Substitution
# aalt: access all alternates
# smcp: lc to smallcaps
# c2sc: caps to smallcaps
# case: uppercase, math and punct shift up
# titl: replaces default glyphs with .titling variations
# onum: changes to oldstyle figures
# lnum: changes to lining figures
# pnum: changes to proportional figures
# tnum: changes to tabular figures
# sups: makes numbers superior
# sinf: makes numbers inferior
# numr: replaces selected figures with numerators
# dnom: replaces selected figures with denominators
# frac: substitutes the existing fractions
# liga: standard lig replacement
# salt: replaces glyphs with alternate variations
# dlig: discretionary ligatures
# ordn: subs ordinal glyphs after numbers
# ornm: allows access to ornaments
# zero: slashed zero

automatically if there are matching characters in the font. All other features will be removed during generation. Basically one can use any features file that uses the AFDKO syntax and has a matching character naming convention after adding three lines. Everything that is covered by the FDK/SDK will be in the font then, as I showed during the presentation together with Miguel Sousa at the ATypI TypeTech Forum in Brighton last year.


interesting...

Joel Santos // youremin
sound & visual


@youremin
Order the book directly through Leslie himself. Here's the prices through him, AND you get his nice signature on the book:

Shipping prices outside USA:
(I'll add in the shipping cost myself when I process your order. It's low-tech but it works) Learn FontLab Fast sent Air Mail to EU and Scandinavia: $36.95 total


But will he take back what he said about old style numbers & ligatures -- or was he just spoofing & I'm too much an old rube to know . . .


What did Leslie say?


I am having a similar problem to youremin.

Converting a postscript outline font to otf using FontForge (yes, I have permission to do this) and I find that the typesetting program (in this case XeLaTeX) does not correctly substitute the curled quote marks that are at U+2018 and U+2019 for the vertical "apostrophe quote". Yet with standard (bought) open type fonts it works fine. So there must be some flag somewhere in the font that the typesetting program reads to know to do this. And that flag must not be being set correctly in the conversion process. Does anyone know what that is and how I can correct it?

The curled quotes are definitely present in the font.

(Tearing my hair out!)

El.


Sorry guys — scratch my question. The problem is in XeLaTeX. Some fiddling uncovered it.


lets reavive this.
i still don't know the capabilities of opentype, i first bought 3 books of calligraphy that are more important than opentype on my point of view but i know a thing. It is possible to compare sides for kerning. For example saying that Right side of M is equal to the right side of N so we just need to kern M for example...
how can i do that?

Joel Santos // youremin
sound & visual


Joel,

Just send me a personal email and we can arrange a coffee, so I can explain you a few things about OT capabilities,
including layout features, kerning features, and so on.

Dino


Jan, simply commenting in the thread doesn't help get rid of the spam quickly. Feel free to email me if you find any spam and I'll remove it as soon as possible.


Thanks, Tiffany. Shall do.