Page 1 of 1

[FIXED] delete base glyph

Posted: Wed Jun 08, 2022 7:23 am
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 3354 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 3354 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().

Re: delete base glyph

Posted: Wed Jun 08, 2022 9:02 am
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".

Re: delete base glyph

Posted: Wed Jun 08, 2022 9:31 am
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 3342 times

Re: delete base glyph

Posted: Wed Jun 08, 2022 9:41 am
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.

Re: delete base glyph

Posted: Wed Jun 08, 2022 9:47 am
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?

Re: delete base glyph

Posted: Wed Jun 08, 2022 9:53 am
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.

Re: delete base glyph

Posted: Wed Jun 08, 2022 10:00 am
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.

Re: delete base glyph

Posted: Wed Jun 08, 2022 10:09 am
by Erwin Denissen
Well, lsb plus the width of the outline plus rsb equals aw.

Re: delete base glyph

Posted: Wed Jun 08, 2022 10:19 am
by NinnaD
There ought to be a smiley hitting the wall especially for me! I hope other aspects of your job are triply fulfilling.

Re: delete base glyph

Posted: Wed Jun 08, 2022 10:25 am
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?

Re: delete base glyph

Posted: Wed Jun 08, 2022 11:38 am
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.

Re: delete base glyph

Posted: Wed Jun 08, 2022 11:45 am
by NinnaD
Oh, good, I'm not going crazy then :lol: