[FIXED] delete base glyph

Post your bug reports here. Include information that helps us to understand and reproduce the bug.
Post Reply
NinnaD
Posts: 200
Joined: Mon Feb 15, 2021 8:06 pm

[FIXED] delete base glyph

Post by NinnaD »

1. create unmapped composite, e.g. a+overlinecomb
2. AutoAttach, lsb(a), rsb(a)
a_before.png
a_before.png (57.54 KiB) Viewed 3172 times
3. delete the contents of the base glyph a and here's the result:
a_after.png
a_after.png (51.25 KiB) Viewed 3172 times
Regardless of the mark, all marks shift to x=0, anchors shift and sth happens to the AW.

This doesn't happen with LSB/RSB set to a specific value or to base().
Erwin Denissen
Moderator
Moderator
Posts: 11107
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: delete base glyph

Post by Erwin Denissen »

Well, it might all seem confusing, but if your LSB is set to lsb(a) and you clear glyph "a", the left side-bearing of a is changed from 37 to 0. So the composite will be forced to have a lsb of zero, thus the mark is moved to comply.

I am not sure why the RSB is not equal to 578 in your screenshots, but maybe you moved the rsb of the "a".
Erwin Denissen
High-Logic
Proven Font Technology
NinnaD
Posts: 200
Joined: Mon Feb 15, 2021 8:06 pm

Re: delete base glyph

Post by NinnaD »

Well, it might all seem confusing
Being confused is my default setting :lol:
I am not sure why the RSB is not equal to 578 in your screenshots, but maybe you moved the rsb of the "a".
Nope, didn't:
aaa.png
aaa.png (66.48 KiB) Viewed 3160 times
Erwin Denissen
Moderator
Moderator
Posts: 11107
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: delete base glyph

Post by Erwin Denissen »

Erwin Denissen wrote: Wed Jun 08, 2022 9:02 am Well, it might all seem confusing, but if your LSB is set to lsb(a) and you clear glyph "a", the left side-bearing of a is changed from 37 to 0. So the composite will be forced to have a lsb of zero, thus the mark is moved to comply.

I am not sure why the RSB is not equal to 578 in your screenshots, but maybe you moved the rsb of the "a".
So it is confusing to me, as 578 was the AW of the composite, while I was actually interested in the AW of the base glyph. Your new screenshots show that the values are correct.
Erwin Denissen
High-Logic
Proven Font Technology
NinnaD
Posts: 200
Joined: Mon Feb 15, 2021 8:06 pm

Re: delete base glyph

Post by NinnaD »

How come?
Even if the overline moves to 0 and other values adjust, it's width is 482. It seems that the new AW is the sum of a AW (537) and the width of the overline (482), to arrive at 1019. Why is that a correct value?
Erwin Denissen
Moderator
Moderator
Posts: 11107
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: delete base glyph

Post by Erwin Denissen »

NinnaD wrote: Wed Jun 08, 2022 9:47 am How come?
Even if the overline moves to 0 and other values adjust, it's width is 482. It seems that the new AW is the sum of a AW (537) and the width of the overline (482), to arrive at 1019. Why is that a correct value?
Any other value of AW would conflict with your expression for RSB.
Erwin Denissen
High-Logic
Proven Font Technology
NinnaD
Posts: 200
Joined: Mon Feb 15, 2021 8:06 pm

Re: delete base glyph

Post by NinnaD »

Any other value of AW would conflict with your expression for RSB.
At the risk of sounding like a 3-year-old, why? I see the mechanism, but not the logic behind it.
Erwin Denissen
Moderator
Moderator
Posts: 11107
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: delete base glyph

Post by Erwin Denissen »

Well, lsb plus the width of the outline plus rsb equals aw.
Erwin Denissen
High-Logic
Proven Font Technology
NinnaD
Posts: 200
Joined: Mon Feb 15, 2021 8:06 pm

Re: delete base glyph

Post by NinnaD »

There ought to be a smiley hitting the wall especially for me! I hope other aspects of your job are triply fulfilling.
NinnaD
Posts: 200
Joined: Mon Feb 15, 2021 8:06 pm

Re: delete base glyph

Post by NinnaD »

Another question: if a glyph (A) has numeric values as LSB/RSB, and I copy/paste special values from another glyph (B), it receives new numeric values. If a glyph (A) has lsb(X)/rsb(X) values, and I copy/paste special values from another glyph (B), it keeps lsb(X)/rsb(X). Am I too confused again to see the obvious?
Erwin Denissen
Moderator
Moderator
Posts: 11107
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: delete base glyph

Post by Erwin Denissen »

NinnaD wrote: Wed Jun 08, 2022 10:25 am Am I too confused again to see the obvious?
No, this is just one more ordinary bug... :oops:

It will be fixed with the next upcoming update.
Erwin Denissen
High-Logic
Proven Font Technology
NinnaD
Posts: 200
Joined: Mon Feb 15, 2021 8:06 pm

Re: delete base glyph

Post by NinnaD »

Oh, good, I'm not going crazy then :lol:
Post Reply