I finally figured out how to deal with hooks.
This commit is contained in:
parent
e854f0081b
commit
d7fc33fc77
6 changed files with 47 additions and 37 deletions
|
@ -21,6 +21,7 @@ define [bilinear x0 x1 y0 y1 z00 z01 z10 z11 x y] : linreg
|
|||
* y1
|
||||
linreg x0 z01 x1 z11 x
|
||||
* y
|
||||
define [clamp l h x] : if (x < l) l : if (x > h) h x
|
||||
|
||||
define [fallback] : for [local j 0] (j < arguments.length) [inc j] : if (arguments.(j) !== nothing) : return arguments.(j)
|
||||
|
||||
|
@ -167,7 +168,7 @@ define [buildFont para recursive] : begin
|
|||
define OPERATORSTROKE : adviceBlackness 3.2
|
||||
define SHOULDERFINE : [adviceBlackness 4] / 2
|
||||
|
||||
define [adviceSSmooth y sign] : y * 0.20 + STROKE * 0.25 + 0.0583 * (RIGHTSB - SB) + sign * globalTransform.yx * para.smoothadjust
|
||||
define [adviceSSmooth y sign] : y * 0.22 + STROKE * 0.22 + 0.0583 * (RIGHTSB - SB) + sign * globalTransform.yx * para.smoothadjust
|
||||
define [adviceGlottalStopSmooth y sign] : ((y - STROKE) * 0.25 + STROKE / 2) + sign * globalTransform.yx * para.smoothadjust
|
||||
define [shoulderMidSlope _fine _stroke _dir] : 0.5 * CORRECTION_HX * ([fallback _stroke STROKE] - [fallback _fine SHOULDERFINE]) / [fallback _stroke STROKE] + [fallback _dir 1] * globalTransform.yx
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue