Skip to content

Commit

Permalink
Make the stripes shared across THND digits
Browse files Browse the repository at this point in the history
  • Loading branch information
be5invis committed Jun 11, 2020
1 parent c6813ef commit d23a26f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions glyphs/autobuild-transformed.ptl
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit d23a26f

Please sign in to comment.