added quotation marks.

This commit is contained in:
be5invis 2015-08-02 03:57:28 +08:00
parent 07b0471529
commit b111ec4e46
3 changed files with 64 additions and 2 deletions

View file

@ -548,3 +548,8 @@ create-glyph 'turny' : glyph-construction {
include glyphs.y AS_BASE include glyphs.y AS_BASE
include : FlipAround MIDDLE [XH / 2] include : FlipAround MIDDLE [XH / 2]
} }
create-glyph 'ftail' : glyph-construction {
assign-unicode 0x192
include glyphs.'longs.italic' AS_BASE
include : fBar
}

View file

@ -218,6 +218,17 @@ create-glyph 'comma' : glyph-construction {
:.set-width 0 sw :.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 :.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 { create-glyph 'colon' : glyph-construction {
set-width WIDTH set-width WIDTH
@ -367,7 +378,7 @@ create-glyph 'greater' : glyph-construction {
} }
### Overmarks ### Overmarks
create-glyph 'quotesingle' : glyph-construction { create-glyph 'singleQuote' : glyph-construction {
set-width WIDTH set-width WIDTH
assign-unicode 0x27 assign-unicode 0x27
@ -380,7 +391,7 @@ create-glyph 'quotesingle' : glyph-construction {
:.heads-to DOWNWARD :.heads-to DOWNWARD
} }
create-glyph 'quotedouble' : glyph-construction { create-glyph 'doubleQuote' : glyph-construction {
set-width WIDTH set-width WIDTH
assign-unicode 0x22 assign-unicode 0x22

View file

@ -222,3 +222,49 @@ create-glyph 'negate' : glyph-construction {
include : VBar [RIGHTSB - HALFSTROKE] [hyphenCenter - [RIGHTSB - SB] * 0.55] [hyphenCenter + HALFSTROKE] 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
}