Added V, W, v, w.

This commit is contained in:
Belleve Invis 2015-07-20 17:13:07 +08:00
parent 80c274622e
commit aabb255d9a
2 changed files with 808 additions and 550 deletions

1196
font.js

File diff suppressed because it is too large Load Diff

View File

@ -324,10 +324,70 @@ create-glyph 'V' : glyph-construction {
put-shapes : rightbar.form-stroke
#bottom cap
start-from [MIDDLE - STROKE / 2] 0
line-to [MIDDLE + STROKE / 2] 0
start-from [MIDDLE + STROKE / 2] 0
line-to [MIDDLE - STROKE / 2] 0
line-to MIDDLE STROKE
reverse-last
}
create-glyph 'W' : glyph-construction {
set-width WIDTH
assign-unicode 'W'
include capitalMarks
local TURN [CAP * 0.75]
local turn2 [CAP * 0.59]
local wheight [CAP * 0.6]
local bottomStroke : Math.min [STROKE * 0.8] [[WIDTH - SB * 2] * 0.175]
local m1 : WIDTH * 0.3
local m2 : WIDTH * 0.7
put-shapes: create-stroke
:.start-from SB CAP
:.heads-to DOWNWARD
:.set-width STROKE 0
:.line-to SB TURN
:.heads-to DOWNWARD
:.curve-to SB [[1 - 0.27] * TURN] [m1 - bottomStroke / 2] 0
:.set-width bottomStroke 0
:.form-stroke
put-shapes : create-stroke
:.start-from RIGHTSB CAP
:.heads-to DOWNWARD
:.set-width 0 STROKE
:.line-to RIGHTSB TURN
:.heads-to DOWNWARD
:.curve-to RIGHTSB [[1 - 0.27] * TURN] [m2 + bottomStroke / 2] 0
:.set-width 0 bottomStroke
:.form-stroke
put-shapes: create-stroke
:.start-from [MIDDLE + bottomStroke / 2] wheight
:.heads-to DOWNWARD
:.set-width 0 bottomStroke
:.line-to [MIDDLE + bottomStroke / 2] turn2
:.heads-to DOWNWARD
:.curve-to [MIDDLE + bottomStroke / 2] [[1 - 0.1] * turn2] [m1 + bottomStroke / 2] 0
:.set-width 0 bottomStroke
:.form-stroke
put-shapes : create-stroke
:.start-from [MIDDLE - bottomStroke / 2] wheight
:.heads-to DOWNWARD
:.set-width bottomStroke 0
:.line-to [MIDDLE - bottomStroke / 2] turn2
:.heads-to DOWNWARD
:.curve-to [MIDDLE - bottomStroke / 2] [[1 - 0.1] * turn2] [m2 - bottomStroke / 2] 0
:.set-width bottomStroke 0
:.form-stroke
#bottom cap
start-from [m1 + bottomStroke / 2] 0
line-to [m1 - bottomStroke / 2] 0
line-to m1 bottomStroke
start-from [m2 + bottomStroke / 2] 0
line-to [m2 - bottomStroke / 2] 0
line-to m2 bottomStroke
}
create-glyph 'X' : glyph-construction {
set-width WIDTH
@ -1371,7 +1431,7 @@ create-glyph 'l' : glyph-construction {
}]
}
### x
### x v w
create-glyph 'x' : glyph-construction {
set-width WIDTH
assign-unicode 'x'
@ -1396,6 +1456,100 @@ create-glyph 'x' : glyph-construction {
put-shapes : barone.form-stroke
put-shapes : bartwo.form-stroke
}
create-glyph 'v' : glyph-construction {
set-width WIDTH
assign-unicode 'v'
include eMarks
local TURN [XH * 0.9]
local leftbar : create-stroke
leftbar.start-from SB XH
:.heads-to DOWNWARD
:.set-width STROKE 0
:.line-to SB TURN
:.heads-to DOWNWARD
:.curve-to SB [[1 - 0.27] * TURN] [MIDDLE - STROKE / 2] 0
:.set-width [STROKE * 0.8] 0
local rightbar : create-stroke
rightbar.start-from RIGHTSB XH
:.heads-to DOWNWARD
:.set-width 0 STROKE
:.line-to RIGHTSB TURN
:.heads-to DOWNWARD
:.curve-to RIGHTSB [[1 - 0.27] * TURN] [MIDDLE + STROKE / 2] 0
:.set-width 0 [STROKE * 0.8]
put-shapes : leftbar.form-stroke
put-shapes : rightbar.form-stroke
#bottom cap
start-from [MIDDLE + STROKE / 2] 0
line-to [MIDDLE - STROKE / 2] 0
line-to MIDDLE STROKE
}
create-glyph 'w' : glyph-construction {
set-width WIDTH
assign-unicode 'w'
include eMarks
local TURN [XH * 0.75]
local turn2 [XH * 0.59]
local wheight [XH * 0.6]
local bottomStroke : Math.min [STROKE * 0.8] [[WIDTH - SB * 2] * 0.175]
local m1 : WIDTH * 0.35
local m2 : WIDTH * 0.65
put-shapes: create-stroke
:.start-from SB XH
:.heads-to DOWNWARD
:.set-width STROKE 0
:.line-to SB TURN
:.heads-to DOWNWARD
:.curve-to SB [[1 - 0.27] * TURN] [m1 - bottomStroke / 2] 0
:.set-width bottomStroke 0
:.form-stroke
put-shapes : create-stroke
:.start-from RIGHTSB XH
:.heads-to DOWNWARD
:.set-width 0 STROKE
:.line-to RIGHTSB TURN
:.heads-to DOWNWARD
:.curve-to RIGHTSB [[1 - 0.27] * TURN] [m2 + bottomStroke / 2] 0
:.set-width 0 bottomStroke
:.form-stroke
put-shapes: create-stroke
:.start-from [MIDDLE + bottomStroke / 2] wheight
:.heads-to DOWNWARD
:.set-width 0 bottomStroke
:.line-to [MIDDLE + bottomStroke / 2] turn2
:.heads-to DOWNWARD
:.curve-to [MIDDLE + bottomStroke / 2] [[1 - 0.1] * turn2] [m1 + bottomStroke / 2] 0
:.set-width 0 bottomStroke
:.form-stroke
put-shapes : create-stroke
:.start-from [MIDDLE - bottomStroke / 2] wheight
:.heads-to DOWNWARD
:.set-width bottomStroke 0
:.line-to [MIDDLE - bottomStroke / 2] turn2
:.heads-to DOWNWARD
:.curve-to [MIDDLE - bottomStroke / 2] [[1 - 0.1] * turn2] [m2 - bottomStroke / 2] 0
:.set-width bottomStroke 0
:.form-stroke
#bottom cap
start-from [m1 + bottomStroke / 2] 0
line-to [m1 - bottomStroke / 2] 0
line-to m1 bottomStroke
start-from [m2 + bottomStroke / 2] 0
line-to [m2 - bottomStroke / 2] 0
line-to m2 bottomStroke
}
### s
create-glyph 's' : glyph-construction {