Cleanup direct manipulation of contours
This commit is contained in:
parent
02b61d119e
commit
344d001217
1 changed files with 7 additions and 9 deletions
|
@ -1050,12 +1050,12 @@ glyph-block Letter-Latin-W : begin
|
|||
local wMidHeight : if barStraight (topWithoutSerif * [Math.min 1 (df.div * 0.9)]) (top * 0.6)
|
||||
|
||||
if barStraight : begin
|
||||
include : dispiro
|
||||
include : tagged 'strokeDown1' : dispiro
|
||||
widths.lhs
|
||||
flat (df.leftSB + O * 2) top [heading Downward]
|
||||
g4 (m1 - fineOffsetOuter) 0 [widths.lhs fineOuter]
|
||||
: else : begin
|
||||
include : dispiro
|
||||
include : tagged 'strokeDown1' : dispiro
|
||||
widths.lhs
|
||||
flat df.leftSB top [heading Downward]
|
||||
curl df.leftSB (top * 0.75) [heading Downward]
|
||||
|
@ -1101,17 +1101,18 @@ glyph-block Letter-Latin-W : begin
|
|||
include : difference [InnerShapes] [InnerStrokeMask]
|
||||
|
||||
if barStraight : begin
|
||||
include : dispiro
|
||||
include : tagged 'strokeUp2' : dispiro
|
||||
widths.rhs
|
||||
flat (df.rightSB - O * 2) top [heading Downward]
|
||||
g4 (m2 + fineOffsetOuter) 0 [widths.rhs fineOuter]
|
||||
: else : begin
|
||||
include : dispiro
|
||||
include : tagged 'strokeUp2' : dispiro
|
||||
widths.rhs
|
||||
flat df.rightSB top [heading Downward]
|
||||
curl df.rightSB (top * 0.75) [heading Downward]
|
||||
quadcontrols 0 0.3 6 unimportant
|
||||
g4 (m2 + fineOffsetOuter) 0 [widths.rhs fineOuter]
|
||||
|
||||
include : AIVSerifs top df.leftSB df.rightSB
|
||||
|
||||
set WShape.fineOuter 5
|
||||
|
@ -1169,11 +1170,8 @@ glyph-block Letter-Latin-W : begin
|
|||
include : WShape top barStraight df
|
||||
|
||||
# Eject unnecessary contours
|
||||
this.contours.pop
|
||||
if SLAB : begin
|
||||
local s : this.contours.pop
|
||||
this.contours.pop
|
||||
this.contours.push s
|
||||
eject-contour 'strokeUp2'
|
||||
if SLAB : eject-contour 'serifRT'
|
||||
|
||||
include : dispiro
|
||||
widths.rhs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue