Optimize jut length of serifs of J.serifedSymmetric
. (#2800)
This commit is contained in:
parent
bd60530a4a
commit
06236bcc3f
1 changed files with 20 additions and 17 deletions
|
@ -23,7 +23,7 @@ glyph-block Letter-Latin-Upper-J : begin
|
||||||
set-base-anchor 'overlay' (xBarRight - [HSwToV : 0.75 * Stroke]) (top * OverlayPos)
|
set-base-anchor 'overlay' (xBarRight - [HSwToV : 0.75 * Stroke]) (top * OverlayPos)
|
||||||
set-base-anchor 'jTopSerifAttach' (xBarRight - [HSwToV HalfStroke]) top
|
set-base-anchor 'jTopSerifAttach' (xBarRight - [HSwToV HalfStroke]) top
|
||||||
|
|
||||||
local sw : Math.min (0.4 * (xBarRight - df.leftSB)) Stroke
|
local sw : Math.min Stroke : 0.4 * (xBarRight - df.leftSB)
|
||||||
local hookx : 0.75 * df.leftSB
|
local hookx : 0.75 * df.leftSB
|
||||||
|
|
||||||
include : dispiro
|
include : dispiro
|
||||||
|
@ -36,19 +36,22 @@ glyph-block Letter-Latin-Upper-J : begin
|
||||||
define [JFlatHookBase df dfHook top] : glyph-proc
|
define [JFlatHookBase df dfHook top] : glyph-proc
|
||||||
set-width df.width
|
set-width df.width
|
||||||
include : df.markSet.[if (top > XH) 'capital' 'e']
|
include : df.markSet.[if (top > XH) 'capital' 'e']
|
||||||
set-base-anchor 'above' (df.rightSB - [HSwToV : 0.75 * Stroke] - JBalance2) top
|
|
||||||
set-base-anchor 'overlay' (df.rightSB - [HSwToV : 0.75 * Stroke] - JBalance2) (top * OverlayPos)
|
|
||||||
set-base-anchor 'jTopSerifAttach' (df.rightSB - JBalance2 - [HSwToV HalfStroke]) top
|
|
||||||
|
|
||||||
local sw : Math.min (0.4 * (df.rightSB - JBalance2 - df.leftSB)) Stroke
|
local xBarRight : df.rightSB - JBalance2
|
||||||
|
|
||||||
|
set-base-anchor 'above' (xBarRight - [HSwToV : 0.75 * Stroke]) top
|
||||||
|
set-base-anchor 'overlay' (xBarRight - [HSwToV : 0.75 * Stroke]) (top * OverlayPos)
|
||||||
|
set-base-anchor 'jTopSerifAttach' (xBarRight - [HSwToV HalfStroke]) top
|
||||||
|
|
||||||
|
local sw : Math.min Stroke : 0.4 * (xBarRight - df.leftSB)
|
||||||
local hookx : 0.75 * df.leftSB
|
local hookx : 0.75 * df.leftSB
|
||||||
local hd : FlatHookDepth dfHook
|
local hd : FlatHookDepth dfHook
|
||||||
|
|
||||||
include : dispiro
|
include : dispiro
|
||||||
flat (df.rightSB - JBalance2) top [widths.rhs.heading sw Downward]
|
flat xBarRight top [widths.rhs.heading sw Downward]
|
||||||
curl (df.rightSB - JBalance2) (HalfStroke + 1.375 * hd.y)
|
curl xBarRight (HalfStroke + 1.375 * hd.y)
|
||||||
arcvh.superness DesignParameters.tightHookSuperness
|
arcvh.superness DesignParameters.tightHookSuperness
|
||||||
flat (df.rightSB - JBalance2 - [Math.min (0.625 * (df.rightSB - df.leftSB)) (1.375 * hd.x)]) 0 [widths.rhs Stroke]
|
flat (xBarRight - [Math.min (0.625 * (df.rightSB - df.leftSB)) (1.375 * hd.x)]) 0 [widths.rhs Stroke]
|
||||||
curl df.leftSB 0
|
curl df.leftSB 0
|
||||||
|
|
||||||
define [JDescendingBentHookBase df dfHook top] : glyph-proc
|
define [JDescendingBentHookBase df dfHook top] : glyph-proc
|
||||||
|
@ -87,8 +90,8 @@ glyph-block Letter-Latin-Upper-J : begin
|
||||||
curl (xc + [HSwToV HalfStroke]) (bottom + fine + rinner * 2)
|
curl (xc + [HSwToV HalfStroke]) (bottom + fine + rinner * 2)
|
||||||
CurlyTail.n fine bottom xCo
|
CurlyTail.n fine bottom xCo
|
||||||
x2 -- df.width
|
x2 -- df.width
|
||||||
y2 -- bottom + 0.5 * fine
|
y2 -- (bottom + 0.5 * fine)
|
||||||
yLoopTop -- bottom + 2 * fine + 2 * rinner
|
yLoopTop -- (bottom + 2 * fine + 2 * rinner)
|
||||||
|
|
||||||
define [JDescendingFlatHookSeriflessBase df dfHook top] : glyph-proc
|
define [JDescendingFlatHookSeriflessBase df dfHook top] : glyph-proc
|
||||||
set-width df.width
|
set-width df.width
|
||||||
|
@ -108,7 +111,7 @@ glyph-block Letter-Latin-Upper-J : begin
|
||||||
|
|
||||||
define [JLeftwardSerif df x top] : HSerif.lt x top LongJut
|
define [JLeftwardSerif df x top] : HSerif.lt x top LongJut
|
||||||
define [JBothSidesSerif df x top] : union [HSerif.lt x top LongJut] [HSerif.rt x top Jut]
|
define [JBothSidesSerif df x top] : union [HSerif.lt x top LongJut] [HSerif.rt x top Jut]
|
||||||
define [JSymmetricSerif df x top] : HSerif.mt (x + O) top (Jut + JBalance2)
|
define [JSymmetricSerif df x top] : HSerif.mt (x + OX) top MidJutCenter
|
||||||
|
|
||||||
define JConfig : SuffixCfg.weave
|
define JConfig : SuffixCfg.weave
|
||||||
object # height and hook
|
object # height and hook
|
||||||
|
@ -153,7 +156,7 @@ glyph-block Letter-Latin-Upper-J : begin
|
||||||
CreateAccentedComposition 'JAcute' null 'J' 'acuteAbove'
|
CreateAccentedComposition 'JAcute' null 'J' 'acuteAbove'
|
||||||
|
|
||||||
create-glyph 'mathbb/J' 0x1D541 : glyph-proc
|
create-glyph 'mathbb/J' 0x1D541 : glyph-proc
|
||||||
local hookx (0.75 * SB)
|
local hookx : 0.75 * SB
|
||||||
|
|
||||||
include : MarkSet.capital
|
include : MarkSet.capital
|
||||||
set-base-anchor 'above' (RightSB - [HSwToV : 0.75 * BBD] - JBalance2) CAP
|
set-base-anchor 'above' (RightSB - [HSwToV : 0.75 * BBD] - JBalance2) CAP
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue