# \*origin anchor interferes with ‘mark’ feature code generation

**URL:** <https://forum.glyphsapp.com/t/origin-anchor-interferes-with-mark-feature-code-generation/16909>\
**Category:** Glyphs\
**Tags:** bug\
**Created:** [December 9, 2020, 9:54am UTC](https://forum.glyphsapp.com/t/origin-anchor-interferes-with-mark-feature-code-generation/16909 "2020-12-09T09:54:44Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![FlorianPircher](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/florianpircher/32/30457_2.png) [@FlorianPircher](https://forum.glyphsapp.com/u/FlorianPircher)\
**Post date:** [December 9, 2020, 9:54am UTC](https://forum.glyphsapp.com/t/origin-anchor-interferes-with-mark-feature-code-generation/16909/1 "2020-12-09T09:54:44Z")

</div>

Glyphs 3 [changed the default collapse to zero-width behavior](https://forum.glyphsapp.com/t/collapse-to-zero-width-glyph-behavior-changed-in-glyphs-3/16520/3) to collapse onto the left edge.

> [@Collapse to zero-width glyph behavior changed in Glyphs 3](https://forum.glyphsapp.com/t/collapse-to-zero-width-glyph-behavior-changed-in-glyphs-3/16520/3):
>
> Too many people had complained about the right shifting.

So I decided to place an `*origin` anchor on the right edge of my marks as per [this thread](https://forum.glyphsapp.com/t/custom-lsb-rsb-for-zero-width-mark-attachment/15943/8):

> [@Custom LSB & RSB for Zero Width Mark Attachment](https://forum.glyphsapp.com/t/custom-lsb-rsb-for-zero-width-mark-attachment/15943/8):
>
> I just realised that there is a special anchor that does something very similar: “\*origin”.

 ![origin placement](https://forum.glyphsapp.com/uploads/default/original/2X/6/6671a1ed71e9fe5c173cee2296e02c58e1101697.png)

This ensures that the mark collapses onto the right edge which allows the mark to work in environments where ‘mark’/‘mkmk’ is not supported.

However, the `*origin` anchor interferes with automatic ‘mark’ feature code generation. This is what HarfBuzz and Core Text draw for `/odieresis/dotaccentcomb`:

 ![odieresis+dotaccentcomb](https://forum.glyphsapp.com/uploads/default/original/2X/4/4b3fb7ab986f3c974e57a709ab6d7e8fd6792af6.png)

Whereas this is what Glyphs automatic alignment creates:

 ![auto-align](https://forum.glyphsapp.com/uploads/default/original/2X/b/b23adcf93a3572633c14c4f7fe45c905f95cb781.jpeg)

This issue seams to only arise when the base glyph is automatic aligned, as `/odieresis` with `/dotaccentcomb` on top in the above example. If I delete `/odieresis` from the font and draw `/o/dieresiscomb/dotaccentcomb` I get the correct result in HarfBuzz/Core Text:

 ![o+dieresiscomb+dotaccentcomb](https://forum.glyphsapp.com/uploads/default/original/2X/a/a1b982c0cc1d4347ccb33f160a5163085cbc4d47.png)

Here is my test-file: [Test.glyphs](https://forum.glyphsapp.com/uploads/short-url/61WX0TEBKbMYcqID4LKZeUgPmHO.glyphs) (7.5 KB)

---

<div class="post-metadata">

**Author:** ![FlorianPircher](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/florianpircher/32/30457_2.png) [@FlorianPircher](https://forum.glyphsapp.com/u/FlorianPircher)\
**Post date:** [December 10, 2020, 5:32pm UTC](https://forum.glyphsapp.com/t/origin-anchor-interferes-with-mark-feature-code-generation/16909/2 "2020-12-10T17:32:20Z")

</div>

This issue also applies when using an `*origin` anchor to construct non-mark glyphs. Say I have a glyph `/_part.aArc` for the top-curve of `/a` and place an `*origin` anchor in the bottom right of the curve.

 ![origin anchor placement and use](https://forum.glyphsapp.com/uploads/default/original/2X/f/fef12a8968c63a18e367307e7e3f9bb7c6fc6c51.png)

The `/adieresis` is a component glyph which uses `/a` and `/dieresiscomb`. All looks fine within Glyphs, but on export the `/adieresis` is shifted.

 ![3D](https://forum.glyphsapp.com/uploads/default/original/2X/8/889e8a1b4b8dd79c78aeedcc0f14e34d1f7ab54b.png)

Test-file: [Test.glyphs](https://forum.glyphsapp.com/uploads/short-url/vljCo29GxxOe9VruclWc1xuNJN6.glyphs) (7.5 KB)

---

<div class="post-metadata">

**Author:** ![GeorgSeifert](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/georgseifert/32/259_2.png) [@GeorgSeifert](https://forum.glyphsapp.com/u/GeorgSeifert)\
**Post date:** [December 10, 2020, 7:14pm UTC](https://forum.glyphsapp.com/t/origin-anchor-interferes-with-mark-feature-code-generation/16909/3 "2020-12-10T19:14:51Z")

</div>

Can you send me a sample font?

---

<div class="post-metadata">

**Author:** ![FlorianPircher](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/florianpircher/32/30457_2.png) [@FlorianPircher](https://forum.glyphsapp.com/u/FlorianPircher)\
**Post date:** [December 10, 2020, 7:28pm UTC](https://forum.glyphsapp.com/t/origin-anchor-interferes-with-mark-feature-code-generation/16909/4 "2020-12-10T19:28:55Z")

</div>

Sample Glyphs files are provided at the end of both posts. OTF for both are attached here:

[Test-1-and-2.zip](https://forum.glyphsapp.com/uploads/short-url/cWU4J1QnAeovvcpckYtiOwMBcat.zip) (3.5 KB)

---

<div class="post-metadata">

**Author:** ![GeorgSeifert](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/georgseifert/32/259_2.png) [@GeorgSeifert](https://forum.glyphsapp.com/u/GeorgSeifert)\
**Post date:** [December 22, 2020, 3:13pm UTC](https://forum.glyphsapp.com/t/origin-anchor-interferes-with-mark-feature-code-generation/16909/6 "2020-12-22T15:13:37Z")

</div>

I forgot to mention that this is fixed already.

---

<div class="post-metadata">

**Author:** ![FlorianPircher](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/florianpircher/32/30457_2.png) [@FlorianPircher](https://forum.glyphsapp.com/u/FlorianPircher)\
**Post date:** [December 22, 2020, 3:32pm UTC](https://forum.glyphsapp.com/t/origin-anchor-interferes-with-mark-feature-code-generation/16909/7 "2020-12-22T15:32:35Z")

</div>

I just tested it with 3.0.2 (3046) and while `*origin` now works to move combining marks to the left of the zero-width frame for legacy applications, such marks use the `*origin` anchor exclusively instead of the designated top/bottom/… anchor for automatic alignment (with no anchor-menu).

Mark:

 ![](https://forum.glyphsapp.com/uploads/default/original/2X/9/9660a72d77b8b41b107a1915ff1ce296d09f1f01.png)

Precomposed:

 ![](https://forum.glyphsapp.com/uploads/default/original/2X/c/c638c64462cc43a6dc7d08354509266b6fc4307d.png)

_ **EDIT:** _ This is not an issue with the test fonts I posted above, only with the font I am currently working on. I will send you a test font once I can isolate the issue.

* * *

The `*origin` anchor in the `/a` arch (as mentioned in the other thread/second commend on this thread) works beautifully now, thank you very much!

---

<div class="post-metadata">

**Author:** ![GeorgSeifert](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/georgseifert/32/259_2.png) [@GeorgSeifert](https://forum.glyphsapp.com/u/GeorgSeifert)\
**Post date:** [December 22, 2020, 11:18pm UTC](https://forum.glyphsapp.com/t/origin-anchor-interferes-with-mark-feature-code-generation/16909/8 "2020-12-22T23:18:38Z")

</div>

Please send the file.

---

<div class="post-metadata">

**Author:** ![FlorianPircher](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/florianpircher/32/30457_2.png) [@FlorianPircher](https://forum.glyphsapp.com/u/FlorianPircher)\
**Post date:** [December 22, 2020, 11:37pm UTC](https://forum.glyphsapp.com/t/origin-anchor-interferes-with-mark-feature-code-generation/16909/9 "2020-12-22T23:37:40Z")

</div>

> [@FlorianPircher](#):
>
> I just tested it with 3.0.2 (3046) and while `*origin` now works to move combining marks to the left of the zero-width frame for legacy applications, such marks use the `*origin` anchor exclusively instead of the designated top/bottom/… anchor for automatic alignment (with no anchor-menu).

This test file has the same problem as described above:  
[Test1.glyphs](https://forum.glyphsapp.com/uploads/short-url/sL9ZlP6GFZLuGDUJMkqU9aQAlU.glyphs) (7.5 KB)

---

<div class="post-metadata">

**Author:** ![GeorgSeifert](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/georgseifert/32/259_2.png) [@GeorgSeifert](https://forum.glyphsapp.com/u/GeorgSeifert)\
**Post date:** [December 23, 2020, 2:12pm UTC](https://forum.glyphsapp.com/t/origin-anchor-interferes-with-mark-feature-code-generation/16909/10 "2020-12-23T14:12:19Z")

</div>

This was one of the fixes I like most. Just remove some code.

---

<div class="post-metadata">

**Author:** ![FlorianPircher](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/florianpircher/32/30457_2.png) [@FlorianPircher](https://forum.glyphsapp.com/u/FlorianPircher)\
**Post date:** [December 23, 2020, 2:24pm UTC](https://forum.glyphsapp.com/t/origin-anchor-interferes-with-mark-feature-code-generation/16909/11 "2020-12-23T14:24:40Z")

</div>

Sounds great! Looking forward to the next cutting edge release.

---

<div class="post-metadata">

**Author:** ![FlorianPircher](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/florianpircher/32/30457_2.png) [@FlorianPircher](https://forum.glyphsapp.com/u/FlorianPircher)\
**Post date:** [December 24, 2020, 12:59am UTC](https://forum.glyphsapp.com/t/origin-anchor-interferes-with-mark-feature-code-generation/16909/12 "2020-12-24T00:59:13Z")

</div>

Removing some code did indeed work 😃

This issue has been resolved for me in 3.0.2 (3047).
