Reuse of components and anchoring

I’m trying to reuse the bowls of d,d,p,q &c as components, but I’ve run into the issue of positioning of this bowl after I flipped it. Are there anchors that will survive the flip, mirror, rotate treatment?

There are multiple options.

top, bottom, left, right name particles are renamed accordingly when you flip components (so a vertical flip will rename top to bottom and give versa).

I personally use Connect (not lowercase, because that’s a special case that poses problems for some reason). Then, you can use Connect_2 etc. if you want to use multiple Connect anchors on a component.

Alright left, right, top, bottom, I’ll give those a spin. The Connect anchors will surely be as static as any other randomly named anchor?

Tried your proposal, but it does not take into account the advance width of the composite glyphs. I have to – apparently – to use #exit/#entry anchors to have the composite glyph sum the advance width of the components.

So let me refine my question: Are there anchors that will allow me to flip|rotate components while also summing the advance width in the composite glyphs?

This is something I’ve been nagging Georg about multiple times. Currently, I am forced to do this:

And then use metrics keys to ensure correct metrics.

Ideally, I would like to have automatic alignment only on one side (the stem, in this case) and then have the rest of the glyph’s components align automatically but also influencing the advance width.

I ended up flipping my left bowl into a new glyph, and then placing the #entry anchor again and keying the side-bearing.

These hacks are brittle, and I hope team Glyphs will make some better ways of doing this for the next version.

Subscribing myself to this thread

Here is a sample setup how I would do it.

There is one “flaw” (direction of the in stroke on some stems) to show how the stems can be horizontally flipped and still work.

ConnectParts.glyphs (7.4 KB)

One thing to pay attention to, is that the #exit/#entry anchors all sit on half x-height. That way you can vertically flip things and it still aligns.

I find this very annoying, as this necessitates an even-unit x-height.

Nobody forces you to do it ;). I just can’t see another way to allow vertically flipped (or rotated) pieces to properly stack.

Is it feasible to set something like an “inherit sidebearing from component”, but only for either LSB or RSB?

This is essentially automatic alignment, yes, but on a per-side basis.

Interesting. I’ll give it a try. This method should also work with Italic (right?) since Glyphs uses the middle-point of the xheight to center the Italic on?

What do you mean by this?