diff --git a/glyphs/autobuild-enclosure.ptl b/glyphs/autobuild-enclosure.ptl index f3e9aa51b..3dc1a1a62 100644 --- a/glyphs/autobuild-enclosure.ptl +++ b/glyphs/autobuild-enclosure.ptl @@ -28,7 +28,6 @@ glyph-block AutoBuild-Enclosure : begin define [EnclosureStrokeScale dscale digits width] : dscale / [Math.pow [AdjustDigitCount digits width] 0.66] define [circleInner dscale miniatureFont parts width mockInnerWidth bal baly] : begin - console.log 'Start data collect' parts local totalWidth 0 local firstDerivedGyph null local shift 0 @@ -41,13 +40,10 @@ glyph-block AutoBuild-Enclosure : begin if (firstDerivedGyph && firstDerivedGyph.anchors.above && firstDerivedGyph.anchors.below) : begin if bal : set shift : CAP / 2 - [mix baly [mix firstDerivedGyph.anchors.above.y firstDerivedGyph.anchors.below.y 0.5] bal] : else : set shift : CAP / 2 - [mix firstDerivedGyph.anchors.above.y firstDerivedGyph.anchors.below.y 0.5] - console.log 'End data collect' parts - console.log 'Start part prepare' parts foreach [gidPart : items-of parts] : do define gniPart : '.ci.' + gidPart + '@' + [{parts.length dscale width xCompress bal baly}.join '/'] if [not : query-glyph gniPart] : begin - console.log 'Add new used part' gidPart '->' gniPart create-glyph gniPart : glyph-construction include miniatureFont.(gidPart) apply-transform : Upright @@ -56,11 +52,9 @@ glyph-block AutoBuild-Enclosure : begin apply-transform : Translate 0 (CAP / 2 * dscale) apply-transform : Translate 0 (symbolMid - CAP * dscale / 2) apply-transform : Italify - console.log 'End part prepare' parts return : create-glyph : glyph-construction local tw 0 - console.log 'Start' parts foreach [gidPart : items-of parts] : do define gniPart : '.ci.' + gidPart + '@' + [{parts.length dscale width xCompress bal baly}.join '/'] local part : query-glyph gniPart @@ -69,7 +63,6 @@ glyph-block AutoBuild-Enclosure : begin set tw : tw + part.advanceWidth * dscale * xCompress apply-transform : Translate (tw / 2) 0 apply-transform : Translate (width / 2) 0 - console.log 'End' parts '->' currentGlyph.contours.length 'contours' define [CircCrowd digits width] : 2 + 2 * [Math.pow [AdjustDigitCount digits width] 0.5] define [CircScale digits width] : 0.65 / [Math.pow [AdjustDigitCount digits width] 0.5] @@ -490,5 +483,3 @@ glyph-block AutoBuild-Enclosure : begin digitGlyphNames j begin WideWidth1 createDottedGlyphs 2 'period' compositions - - if [not recursive] : console.log '* End enclosure build.'