From b111ec4e461e1b1719dd9982bdddf7c57f391246 Mon Sep 17 00:00:00 2001 From: be5invis Date: Sun, 2 Aug 2015 03:57:28 +0800 Subject: [PATCH] added quotation marks. --- glyphs/latin-extend.patel | 5 +++++ glyphs/symbol-ascii.patel | 15 +++++++++++-- glyphs/symbol-extend.patel | 46 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+), 2 deletions(-) diff --git a/glyphs/latin-extend.patel b/glyphs/latin-extend.patel index d46b2aa..28adba4 100644 --- a/glyphs/latin-extend.patel +++ b/glyphs/latin-extend.patel @@ -547,4 +547,9 @@ create-glyph 'turny' : glyph-construction { assign-unicode 0x028E include glyphs.y AS_BASE include : FlipAround MIDDLE [XH / 2] +} +create-glyph 'ftail' : glyph-construction { + assign-unicode 0x192 + include glyphs.'longs.italic' AS_BASE + include : fBar } \ No newline at end of file diff --git a/glyphs/symbol-ascii.patel b/glyphs/symbol-ascii.patel index 0b11948..eb0b66c 100644 --- a/glyphs/symbol-ascii.patel +++ b/glyphs/symbol-ascii.patel @@ -218,6 +218,17 @@ create-glyph 'comma' : glyph-construction { :.set-width 0 sw :.curve-to [MIDDLE + PERIODRADIUS - O] [mix [mix O [PERIODSIZE - O] 0.5] DESCENDER 0.5] [mix MIDDLE [MIDDLE - PERIODRADIUS] 0.3] DESCENDER } +create-glyph 'invertComma' : glyph-construction { + set-width WIDTH + include glyphs.period + + local sw : PERIODSIZE * 0.5 + include : create-stroke + :.start-from [MIDDLE - PERIODRADIUS + O] [mix O [PERIODSIZE - O] 0.5] + :.set-width sw 0 + :.curve-to [MIDDLE - PERIODRADIUS + O] [mix [mix O [PERIODSIZE - O] 0.5] DESCENDER 0.5] [mix MIDDLE [MIDDLE + PERIODRADIUS] 0.3] DESCENDER +} + create-glyph 'colon' : glyph-construction { set-width WIDTH @@ -367,7 +378,7 @@ create-glyph 'greater' : glyph-construction { } ### Overmarks -create-glyph 'quotesingle' : glyph-construction { +create-glyph 'singleQuote' : glyph-construction { set-width WIDTH assign-unicode 0x27 @@ -380,7 +391,7 @@ create-glyph 'quotesingle' : glyph-construction { :.heads-to DOWNWARD } -create-glyph 'quotedouble' : glyph-construction { +create-glyph 'doubleQuote' : glyph-construction { set-width WIDTH assign-unicode 0x22 diff --git a/glyphs/symbol-extend.patel b/glyphs/symbol-extend.patel index bfce337..eecb3a9 100644 --- a/glyphs/symbol-extend.patel +++ b/glyphs/symbol-extend.patel @@ -221,4 +221,50 @@ create-glyph 'negate' : glyph-construction { include glyphs.hyphen include : VBar [RIGHTSB - HALFSTROKE] [hyphenCenter - [RIGHTSB - SB] * 0.55] [hyphenCenter + HALFSTROKE] +} + +alias 'lowSinvleQuote' 0x201A 'comma' +local yCurlyQuotes [mix [XH * 0.85] CAP 0.6] +create-glyph 'openSingleQuote' : glyph-construction { + assign-unicode 0x2018 + include glyphs.comma + include : FlipAround MIDDLE [yCurlyQuotes / 2] +} +create-glyph 'closeSingleQuote' : glyph-construction { + assign-unicode 0x2019 + include glyphs.openSingleQuote + include : FlipAround MIDDLE yCurlyQuotes +} +create-glyph 'invertSingleQuote' : glyph-construction { + assign-unicode 0x201B + include glyphs.invertComma + include : FlipAround MIDDLE [yCurlyQuotes / 2] + include : FlipAround MIDDLE yCurlyQuotes +} +create-glyph 'lowDoubleQuote' : glyph-construction { + assign-unicode 0x201E + local dist : WIDTH * 0.225 + include glyphs.comma + apply-transform : Translate [-dist * 2] 0 + include glyphs.comma + apply-transform : Translate dist 0 +} +create-glyph 'openDoubleQuote' : glyph-construction { + assign-unicode 0x201C + include glyphs.lowDoubleQuote + include : FlipAround MIDDLE [yCurlyQuotes / 2] +} +create-glyph 'closeDoubleQuote' : glyph-construction { + assign-unicode 0x201D + include glyphs.openDoubleQuote + include : FlipAround MIDDLE yCurlyQuotes +} +create-glyph 'invertDoubleQuote' : glyph-construction { + assign-unicode 0x201F + local dist : WIDTH * 0.225 + include glyphs.invertComma + apply-transform : Translate [-dist * 2] 0 + include glyphs.invertComma + include : FlipAround MIDDLE [yCurlyQuotes / 2] + include : FlipAround MIDDLE yCurlyQuotes } \ No newline at end of file