From 89c3d4ecfecaecd07c9e5f4da7b6af841d0ba0a4 Mon Sep 17 00:00:00 2001 From: Belleve Invis Date: Mon, 20 Jul 2015 23:34:00 +0800 Subject: [PATCH] narrowed regular glyphs. --- font.js | 10 +++++----- font.patel | 4 ++-- glyphs/latin-lower.patel | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/font.js b/font.js index b234f2f..efd2ccd 100644 --- a/font.js +++ b/font.js @@ -25,7 +25,7 @@ 'descender': -178, 'kappa': 0.515, 'italicangle': 0, - 'barpos': 0.455, + 'barpos': 0.45, 'gbarpos': 0.37, 'longserif': 175, 'accent': 175, @@ -53,7 +53,7 @@ r0_para_bolditalic = Object['create'](r0_para_bold); r0_para_bolditalic['italicangle'] = 10; r0_para_bolditalic['tbalance'] = 90; - r0_para = r0_para_regular; + r0_para = r0_para_italic; r0_variantSelector = { 'zero': 'slashed' }; r0_globalTransform = { 'xx': 1, @@ -1504,7 +1504,7 @@ r112_xn$assignunicode$7Hrq('t'); r112_include(r0_bMarks); r112_center = r0_MIDDLE - r0_TBALANCE - r0_HALFSTROKE; - r112_hookx = r112_center + r0_WIDTH * 0.65 - r0_OXHOOK + r0_TAILADJX * r0_globalTransform['yx']; + r112_hookx = r112_center + (r0_WIDTH - r0_SB * 2) * 0.82 - r0_OXHOOK + r0_TAILADJX * r0_globalTransform['yx']; r112_turn = r112_center + (r112_hookx - r112_center) * (0.5 + r0_globalTransform['yx'] * 0.5); r112_xn$putshapes$9Jrj(r112_xn$createstroke$7Hrq()['start-from'](r112_center, r0_CAP)['set-width'](r0_STROKE, 0)['heads-to'](r0_DOWNWARD)['line-to'](r112_center, r0_SMOOTHB)['arc-vh-to'](r112_turn, r0_O)['curve-to'](r112_turn + (r0_KAPPA_HOOK + r0_TAILADJKAPPA * r0_globalTransform['yx'] + 0.1) * (r112_hookx - r112_turn), r0_O, r112_hookx, r0_HOOK - r0_TAILADJY * r0_globalTransform['yx'])['to-outline']()); r112_xn$putshapes$9Jrj(r112_xn$createstroke$7Hrq()['start-from'](r112_center + r0_HALFSTROKE - r0_LONGSERIF + r0_TBALANCE2, r0_XH)['heads-to'](r0_RIGHTWARD)['set-width'](0, r0_STROKE)['line-to'](r112_center + r0_HALFSTROKE + r0_LONGSERIF + r0_TBALANCE2, r0_XH)['heads-to'](r0_RIGHTWARD)['to-outline']()); @@ -2197,9 +2197,9 @@ r168_include(r0_pMarks); r168_turn1 = r0_DESCENDER + (r0_XH - r0_DESCENDER) * 0.1; r168_turn2 = r0_XH * 0.1; - r168_cross = r0_XH * 0.1; + r168_cross = r0_XH * 0.15; r168_xbottom = r0_WIDTH * 0.4; - r168_barone = r168_xn$createstroke$7Hrq()['start-from'](r168_xbottom, r0_DESCENDER)['set-width'](r0_HALFSTROKE, r0_HALFSTROKE)['cubic-to'](r168_xbottom, r168_turn1 + 0.17 * (r0_XH - r168_turn1), r0_RIGHTSB - r0_HALFSTROKE - r0_O, r0_XH - r168_turn1 - 0.6 * (r0_XH - r168_turn1), r0_RIGHTSB - r0_HALFSTROKE - r0_O, r0_XH)['heads-to'](r0_UPWARD); + r168_barone = r168_xn$createstroke$7Hrq()['start-from'](r168_xbottom, r0_DESCENDER)['set-width'](r0_HALFSTROKE, r0_HALFSTROKE)['cubic-to'](r168_xbottom, r168_turn1 + 0.3 * (r0_XH - r168_turn1), r0_RIGHTSB - r0_HALFSTROKE - r0_O, r0_XH - r168_turn1 - 0.65 * (r0_XH - r168_turn1), r0_RIGHTSB - r0_HALFSTROKE - r0_O, r0_XH)['heads-to'](r0_UPWARD); r168_bartwo = r168_xn$createstroke$7Hrq()['start-from'](r0_MIDDLE, r168_cross)['set-width'](r0_HALFSTROKE, r0_HALFSTROKE)['curve-to'](r0_SB + r0_HALFSTROKE + r0_O, r0_XH - r168_turn2 - 0.35 * (r0_XH - r168_turn2), r0_SB + r0_HALFSTROKE + r0_O, r0_XH)['heads-to'](r0_UPWARD); r168_xn$putshapes$9Jrj(r168_barone['to-outline']()); r168_xn$putshapes$9Jrj(r168_bartwo['to-outline']()); diff --git a/font.patel b/font.patel index ea570ee..4972f2a 100644 --- a/font.patel +++ b/font.patel @@ -27,7 +27,7 @@ define para_regular ( .descender [-178] .kappa 0.515 .italicangle 0 - .barpos 0.455 + .barpos 0.45 .gbarpos 0.37 .longserif 175 .accent 175 @@ -59,7 +59,7 @@ define para_bolditalic : Object.create para_bold para_bolditalic.italicangle = 10 para_bolditalic.tbalance = 90 -para = para_regular +para = para_italic define variantSelector ( .zero 'slashed' diff --git a/glyphs/latin-lower.patel b/glyphs/latin-lower.patel index 6474a53..eb694d2 100644 --- a/glyphs/latin-lower.patel +++ b/glyphs/latin-lower.patel @@ -249,7 +249,7 @@ create-glyph 't' : glyph-construction { include bMarks local center [MIDDLE - TBALANCE - HALFSTROKE] - local hookx [center + WIDTH * 0.65 - OXHOOK + TAILADJX * globalTransform.yx] + local hookx [center + [WIDTH - SB * 2] * 0.82 - OXHOOK + TAILADJX * globalTransform.yx] local turn [center + [hookx - center] * [0.5 + globalTransform.yx * 0.5]] put-shapes : create-stroke @@ -697,13 +697,13 @@ create-glyph 'y.upright' : glyph-construction { local turn1 [DESCENDER + [XH - DESCENDER] * 0.1] local turn2 [XH * 0.1] - local cross [XH * 0.1] + local cross [XH * 0.15] local xbottom [WIDTH * 0.4] local barone : create-stroke :.start-from xbottom DESCENDER :.set-width HALFSTROKE HALFSTROKE - :.cubic-to xbottom [turn1 + 0.17 * [XH - turn1]] [RIGHTSB - HALFSTROKE - O] [XH - turn1 - 0.6 * [XH - turn1]] [RIGHTSB - HALFSTROKE - O] XH + :.cubic-to xbottom [turn1 + 0.3 * [XH - turn1]] [RIGHTSB - HALFSTROKE - O] [XH - turn1 - 0.65 * [XH - turn1]] [RIGHTSB - HALFSTROKE - O] XH :.heads-to UPWARD local bartwo : create-stroke