From d23a26fcb6b3eaf19fc7a167269fde1a4c68671e Mon Sep 17 00:00:00 2001 From: Belleve Invis Date: Thu, 11 Jun 2020 00:03:23 -0700 Subject: [PATCH] Make the stripes shared across THND digits --- glyphs/autobuild-transformed.ptl | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/glyphs/autobuild-transformed.ptl b/glyphs/autobuild-transformed.ptl index 85c97a49d7..d688d446cd 100644 --- a/glyphs/autobuild-transformed.ptl +++ b/glyphs/autobuild-transformed.ptl @@ -745,14 +745,16 @@ glyph-block Autobuild-Grouped-Digits : begin numberGlyphIDs.push : gr.get g local derivedFont : Thinner numberGlyphIDs shrink crowd + create-glyph '.nd-shade' : intersection + HBarBottom 0 Width (Descender * 0.75) [adviceBlackness 4] + glyph-construction + include : refer-glyph "denseShade.WWID" + apply-transform : Translate (-Width / 2) 0 + foreach [gid : items-of numberGlyphIDs] : foreach [nd : items-of {0 1 2 3 4 5 6}] create-glyph (gid + ".nd" + nd) : glyph-construction include : refer-glyph gid - if (nd >= 3 && nd <= 5) : include : intersection - HBarBottom 0 Width (Descender * 0.75) [adviceBlackness 4] - glyph-construction - include : refer-glyph "denseShade.WWID" - apply-transform : Translate (-Width / 2) 0 + if (nd >= 3 && nd <= 5) : include : refer-glyph '.nd-shade' if [not recursive] : createGroupedDigits 0.9 3.0 { 'zero.lnum' 'one.lnum' 'two.lnum' 'three.lnum' 'four.lnum'