Adjust hyphen to caps...

ferfolio's picture

Hi Typophiles,

I wanted to know the script that allows hyphens (and other similar signs) to adjust if they are in a cap context, or a lower case context, or even between small caps.

Thank you!

eliason's picture

Do you mean when creating a font? Use an OpenType substitution to an alternate glyph in the case (or smcp) feature.

ferfolio's picture

Yes, while designing a font.

You mean for example create a new glyph called hyphen.cap?
I thought there was one way to vertically adjust the existent hyphen in open type

Pieter van Rosmalen's picture

You can do that with pos:

lookup shiftup {
pos hyphen <0 30 0 0>;
} shiftup;

It is best to add it to the case feature.

Best,
Pieter

ferfolio's picture

That's it! Thanks Pieter :)

Diego Maldonado's picture

I talked to Fer earlier about this... thanks Pieter it worked! I add it to the titl feature.

Nick Shinn's picture

A separate glyph can have different kerning.

Syndicate content Syndicate content