<HTML>
<HEAD>
<TITLE>Re: [mpeg-OTspec] Composite Font, transformation matrix vs scaling</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
Karsten,<BR>
<BR>
Thank you very much for calling attention to the mark attachment case. To restate the problem, applying the x/y metric scaling to the anchor positions does not yield correct results. Is that a correct statement of your thesis? I agree this is a problem.<BR>
<BR>
If I understand your solution correctly, you think we should apply the glyph transformation matrix to the anchor points and not just to the glyph outlines. I agree that solves the problem. Metric scaling is not applicable to glyph construction, but only to placement and scaling of the fully constructed glyph.<BR>
<BR>
I have less of a feel for how burdensome this requirement is. One method is to construct the glyph first, including all marks, and then to apply the general transformation. The other is to work in transformed space. They yield the same results.<BR>
<BR>
If a ligature gets built up as a series of marks (does this happen?) then obviously glyph rotation would be wrong and meaningless; it would cause the elements of the ligature to move off the baseline. Indeed this is true of normal ligatures as well, and so it seems that the ligature must be broken into component characters before applying a transformation matrix that includes rotation. Shear (obliquing), on the other hand, seems like it could apply to any character in any script, and without harming ligatures.<BR>
<BR>
Regards,<BR>
<BR>
— Daniel “daan” Strebe<BR>
Senior Computer Scientist<BR>
Adobe Systems Incorporated<BR>
<BR>
<BR>
<BR>
On 09/09/19 3:40, "Karsten Luecke" <<a href="karstenluecke@yahoo.de">karstenluecke@yahoo.de</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> <BR>
<BR>
<BR>
<BR>
Hello Mr Lunde and Mr Strebe,<BR>
<BR>
discussion has moved on but I want to go back to:<BR>
<BR>
> Perhaps we should apply a transformation matrics to the glyph,<BR>
> and a separate x/y scaling to the metrics.<BR>
<BR>
It occurred to me that in some circumstances, marks may get positioned <BR>
not at the desired place e.g. when using a transformation matrics to <BR>
slant outlines but not to metrics: As soon as mark attachment involves <BR>
an y-shift of the mark from its original position, the mark will be off <BR>
its ideal horizontal position.<BR>
<BR>
I made four screenshots for illustration. Each time with base glyph to <BR>
the left, mark glyph in the middle, and to the right is the result of <BR>
attachment. The little circles to the left and in the middle symbolize <BR>
anchor/attachment points.<BR>
<BR>
1.a<BR>
The mark sits on destined height already, the y value of anchors in both <BR>
base and mark glyph are 0:<BR>
<a href="http://www.kltf.de/OFF/1a_same_y_in_base_and_mark_anchors_not_slanted.jpg">http://www.kltf.de/OFF/1a_same_y_in_base_and_mark_anchors_not_slanted.jpg</a><BR>
<BR>
1.b<BR>
In this case, slanting outlines but not anchor points is no problem <BR>
since both base and mark glyph would be slanted "in tune".<BR>
<a href="http://www.kltf.de/OFF/1b_same_y_in_base_and_mark_anchors_slanted.jpg">http://www.kltf.de/OFF/1b_same_y_in_base_and_mark_anchors_slanted.jpg</a><BR>
<BR>
2.a<BR>
The mark does not sit on destined height -- imagine lowercase marks used <BR>
on uppercase letters. The y value of anchors in base and mark glyph differ.<BR>
<a href="http://www.kltf.de/OFF/2a_diff_y_in_base_and_mark_anchors_not_slanted.jpg">http://www.kltf.de/OFF/2a_diff_y_in_base_and_mark_anchors_not_slanted.jpg</a><BR>
<BR>
2.b<BR>
In this case, slanting outlines but not anchor points results in <BR>
mal-aligned marks.<BR>
<a href="http://www.kltf.de/OFF/2b_diff_y_in_base_and_mark_anchors_slanted.jpg">http://www.kltf.de/OFF/2b_diff_y_in_base_and_mark_anchors_slanted.jpg</a><BR>
<BR>
What do you think about a transformation matrics (rather than mere <BR>
scaling) for metrics too? Or would this be too complicated to implement?<BR>
Really crazy transformations may lead to nonsense results anyway in <BR>
terms of mark attachment, but slanting seems like something that people <BR>
are likely to make use of. (And in my opinion, mark attachment will be <BR>
"standard" in future fonts so should be taken into consideration.)<BR>
<BR>
Best wishes,<BR>
Karsten<BR>
<BR>
<BR>
<FONT COLOR="#FFFFFF"><BR>
</FONT><BR>
</FONT></SPAN></BLOCKQUOTE>
</BODY>
</HTML>