@@ -77,7 +77,7 @@ glyph-block Autobuild-Transformed-Shared : begin
7777
7878 glyph-block-export ToSuperscript
7979 define [ToSuperscript div] : glyph-proc
80- local df : DivFrame df
80+ local df : DivFrame div
8181 include [Ungizmo] true
8282 include [Translate (-df.middle) (-CAP)] true
8383 include [Scale ToSuperscript.crowdAdjScale] true
@@ -88,7 +88,7 @@ glyph-block Autobuild-Transformed-Shared : begin
8888
8989 glyph-block-export ToSubscript
9090 define [ToSubscript div] : glyph-proc
91- local df : DivFrame df
91+ local df : DivFrame div
9292 include [Ungizmo] true
9393 include [Translate (-df.middle) 0] true
9494 include [Scale ToSubscript.crowdAdjScale] true
@@ -368,16 +368,15 @@ glyph-block Autobuild-Transformed : begin
368368 local miniatureFont : Miniature pendingGlyphs
369369 crowd -- ToSuperscript.crowd
370370 scale -- ToSuperscript.crowdAdjScale
371- mono -- true
371+ # mono -- true
372372 sbscale -- 0.75
373373 foreach { unicode glyphid fRelated } [items-of records]
374374 if [not : query-glyph targetNameMap.(glyphid)] : begin
375375 create-glyph (targetNameMap.(glyphid)) unicode : glyph-proc
376376 if [not : miniatureFont.queryByName glyphid] : begin
377377 throw : new Error "Cannot find glyph \(glyphid)"
378- local middle : [miniatureFont.queryByName glyphid].advanceWidth / 2
379378 include [miniatureFont.queryByName glyphid] AS_BASE ALSO_METRICS
380- include : ToSuperscript
379+ include : ToSuperscript (currentGlyph.advanceWidth / Width)
381380 IsSuperscript.set currentGlyph
382381 if ([not fRelated] && gr) : gr.set [query-glyph glyphid] (targetNameMap.(glyphid))
383382 link-relations relSets
@@ -476,14 +475,13 @@ glyph-block Autobuild-Transformed : begin
476475 local miniatureFont : Miniature pendingGlyphs
477476 crowd -- ToSubscript.crowd
478477 scale -- ToSubscript.crowdAdjScale
479- mono -- true
478+ # mono -- true
480479 sbscale -- 0.75
481480 foreach { unicode glyphid fRelated } [items-of records]
482481 if [not : query-glyph targetNameMap.(glyphid)] : begin
483482 create-glyph (targetNameMap.(glyphid)) unicode : glyph-proc
484- local middle : [miniatureFont.queryByName glyphid].advanceWidth / 2
485483 include [miniatureFont.queryByName glyphid] AS_BASE ALSO_METRICS
486- include : ToSubscript
484+ include : ToSubscript (currentGlyph.advanceWidth / Width)
487485 IsSubscript.set currentGlyph
488486 if ([not fRelated] && gr) : gr.set [query-glyph glyphid] (targetNameMap.(glyphid))
489487 link-relations relSets
0 commit comments