Contextual Alternates & Uppercase

Hi,

Having some trouble getting my Uppercase to connect to Lowercase in my script typeface.

I have one set of my Uppercase set as ‘Medial’ (has connectors on both sides), and another set of Uppercase set as ‘Initial’ (connector on right side only). The ‘Initial’ Uppercase should be connecting to the Lowercase.

Guessing I have something swapped in the ‘Lookup Cap’ section that is incorrect?

Help!

Examples below:

- Contextual Alternates I am using

  • Current way UC is connecting to LC (it’s swapping Medial for Initial?)
  • Example of Medial UC A
  • Example of Initial UC A

It would be a bit easier to understand if the class definitions were shown.

Maybe make the isolated the default. Then do:

lookup l_medi {
	sub @default @default' @default by @medi;
	sub @medi @default' @default by @medi;
} l_medi;

lookup l_edge {
	sub @default' @Lowercase by @init;
	sub @default' @medi by @init;
	sub @medi @default' by @fina;
} l_edge;

And you might use components. In the “A”, use a “instroke” and “A.init” as components.

Hi Georg, attached are the class definitions. I wasn’t sure if I needed to add the UC to ‘Medial’, as I got an error in the calt when this happened. Should I create a class for ‘Default’ , then change my ‘Medial’ to ‘Default’ for UC/LC? Sorry, I’m kinda lost…

Thanks for your help!

Default contains the letters without a suffix that contain the isolated shapes.
Initial = initial letters (e.g. A.init, connecting to the right)
Medial = middle letters (e.g. A.medi, connecting to both sides)
Final = final letters (e.g. A.fina, connecting to the left)

All four groups need to have the same number and order of members.

And the code should actually be like this:

lookup l_medi {
	lookupflag IgnoreMarks;
	sub @default @default' @default by @medi;
	sub @medi @default' @default by @medi;
} l_medi;

lookup l_edge {
	lookupflag IgnoreMarks;
	sub @default' @Lowercase by @init;
	sub @default' @medi by @init;
	sub @medi @default' by @fina;
} l_edge;

Hi Georg,

Thank you! I re-arranged my classes and changed the Isol to Default. It looks like that Medial is still starting the UC, instead of the Default, which is what I want. The finals are not working correctly, they are ending with the medials. Where do I switch this around? Sorry, still trying to learn this stuff…

Thank you for your help/patience…

Monica

Sorry, the UC should start with ‘Initial’.

That is supposed to happen with this code. Can you show the content of your “Default” group?

Thanks Georg! How do I re-write to fix? Or do I have my classes mixed up?

Here is Default:

Final:

Medial:

Initial:

You didn’t change the base glyph. My code expected the none connecting glyphs to be the one without a suffix.

So switch the base (a, b, c etc) to what suffix? Sorry, not understanding your coding…

I was following the coding from the glyphs website prior: Features, part 4: positional alternates | Glyphs so is your coding an updated way to do things? Just trying to understand the difference between & how to move forward. Thank you…

Use the glyphs that have the none connecting glyphs without a suffix. So that when you type without openType features you get the none connecting shapes. Then name the connecting shapes according to their function.

Ok, that makes sense- currently I have my non-connecting set as ‘default’, which i will change to no suffix. Got it. What is the ‘default’ class supposed to be then? Should I change ‘Default’ to ‘Isolated’? Or get rid of ‘default’ altogether? Thank you!

I have everything in the correct classes now. Compiled/updated in ccalt, and now ‘no glyph’ is appearing in InDesign for all the letters when I test!

How are you testing in InDesign?

The last glyph that has no connection should be just “A”, not “A.default”.

Got it!!! Fixed almost everything, except when there are just two lowercase letters together…? Strings of words work, but 2 LC don’t seem to connect. Thanks all!

Yes, I use Library> Fonts to load my typefaces! I had a class incorrectly labeled. All seems to be well enow xcept lowercase letters (only 2) that don’t seem to want to connect. Thank you!

Please read Eliminating font cache problems | Glyphs

o + f and t + o are not drawn in a way that the can connect?