Added license for the Code.

This commit is contained in:
be5invis 2016-01-08 23:11:19 +08:00
parent 7065739131
commit 1bb8a60741
2 changed files with 25 additions and 10 deletions

15
LICENSE
View File

@ -1,4 +1,17 @@
Copyright 2015, Belleve Invis (belleve@typeof.net)
The font is licensed under SIL OFL Version 1.1.
The code is licensed under Berkeley Software Distribution license.
====================================================================
Copyright (c) 2015-2016 Belleve Invis
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
====================================================================
Copyright 2015-2016, Belleve Invis (belleve@typeof.net)
This Font Software is licensed under the SIL Open Font License,
Version 1.1.

View File

@ -442,15 +442,17 @@ define [determineMixR w v u sw] : begin
return r
define nHookSegments 12
define [HookShape toStraight toFinish isStart y tight s kkaf] : begin
define [HookShape toStraight toFinish isStart y tight s kkaf dontadjust] : begin
local atBottom : toStraight.y > y
local sw : fallback s STROKE
local ltr : if isStart (toFinish.x < toStraight.x) (toFinish.x > toStraight.x)
local dtu : if isStart (y > toFinish.y) (y < toFinish.y)
toFinish.x = toFinish.x + OXHOOK * [if ltr (-1) 1] * [if isStart (-1) 1]
if (atBottom && ltr && !isStart) : begin
toFinish.x = toFinish.x + TAILADJX * TANSLANT
toFinish.y = toFinish.y - TAILADJY * TANSLANT
if [not dontadjust] : begin
toFinish.x = toFinish.x + OXHOOK * [if ltr (-1) 1] * [if isStart (-1) 1]
if (atBottom && ltr && !isStart) : begin
toFinish.x = toFinish.x + TAILADJX * TANSLANT
toFinish.y = toFinish.y - TAILADJY * TANSLANT
local w : Math.abs (toStraight.y - y)
local v : Math.abs (toFinish.y - y)
@ -491,13 +493,13 @@ define [HookShape toStraight toFinish isStart y tight s kkaf] : begin
* keyKnot
* segAfter
define [hookstart] : params [y tight sw kkaf] : return {
define [hookstart] : params [y tight sw kkaf dontadjust] : return {
.type 'interpolate'
.af [lambda [before after] [HookShape after before true y tight sw kkaf]]
.af [lambda [before after] [HookShape after before true y tight sw kkaf dontadjust]]
}
define [hookend] : params [y tight sw kkaf] : return {
define [hookend] : params [y tight sw kkaf dontadjust] : return {
.type 'interpolate'
.af [lambda [before after] [HookShape before after false y tight sw kkaf]]
.af [lambda [before after] [HookShape before after false y tight sw kkaf dontadjust]]
}
define [WaveShape] : params [l r cy extendy tension sw] : glyph-construction