Adjust hyphen to caps...

Primary tabs

9 posts / 0 new
Last post
Fernando Díaz's picture
Offline
Joined: 6 Jul 2007 - 2:30pm
Adjust hyphen to caps...
0

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!

Craig Eliason's picture
Offline
Joined: 19 Mar 2004 - 1:44pm
0

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

Fernando Díaz's picture
Offline
Joined: 6 Jul 2007 - 2:30pm
0

.

Fernando Díaz's picture
Offline
Joined: 6 Jul 2007 - 2:30pm
0

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
Joined: 3 Mar 2005 - 3:23am
0

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

Pieter van Rosmalen's picture
Joined: 3 Mar 2005 - 3:23am
0

.

Fernando Díaz's picture
Offline
Joined: 6 Jul 2007 - 2:30pm
0

That's it! Thanks Pieter :)

Diego Maladonado's picture
Joined: 19 Dec 2012 - 8:54am
0

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

Nick Shinn's picture
Offline
Joined: 8 Jul 2003 - 11:00am
0

A separate glyph can have different kerning.