Fix quote exports

This commit is contained in:
Belleve Invis 2020-03-05 23:24:55 -08:00
parent 8f9d3145e9
commit 5df647f5b1
10 changed files with 12 additions and 11 deletions

View file

@ -842,24 +842,24 @@ glyph-block Symbol-Punctuation : begin
sketch # lowSingleQuote
include glyphs.comma
include : FlipAround MIDDLE 0 ratio ratio
save 'lowSingleQuote'
save 'lowSingleQuote' 0x201A
sketch # openSingleQuote
include glyphs.lowSingleQuote
include : FlipAround MIDDLE [mix [mix PERIODSIZE commaLow 0.5] yCurlyQuotes 0.5]
save 'openSingleQuote'
save 'openSingleQuote' 0x2018
sketch # closeSingleQuote
include glyphs.openSingleQuote
include : FlipAround MIDDLE yCurlyQuotes
save 'closeSingleQuote'
save 'closeSingleQuote' 0x2019
sketch # revertSingleQuote
include glyphs.invertComma
include : FlipAround MIDDLE 0 ratio ratio
include : FlipAround MIDDLE [mix [mix PERIODSIZE commaLow 0.5] yCurlyQuotes 0.5]
include : FlipAround MIDDLE yCurlyQuotes
save 'revertSingleQuote'
save 'revertSingleQuote' 0x201B
sketch # lowDoubleQuote
local dist : WIDTH * 0.225
@ -867,17 +867,17 @@ glyph-block Symbol-Punctuation : begin
apply-transform : Translate (-dist * 2) 0
include glyphs.lowSingleQuote
apply-transform : Translate dist 0
save 'lowDoubleQuote'
save 'lowDoubleQuote' 0x201E
sketch # openDoubleQuote
include glyphs.lowDoubleQuote
include : FlipAround MIDDLE [mix [mix PERIODSIZE commaLow 0.5] yCurlyQuotes 0.5]
save 'openDoubleQuote'
save 'openDoubleQuote' 0x201C
sketch # closeDoubleQuote
include glyphs.openDoubleQuote
include : FlipAround MIDDLE yCurlyQuotes
save 'closeDoubleQuote'
save 'closeDoubleQuote' 0x201D
sketch # revertDoubleQuote
local dist : WIDTH * 0.225
@ -885,7 +885,7 @@ glyph-block Symbol-Punctuation : begin
apply-transform : Translate (-dist * 2) 0
include glyphs.revertSingleQuote
apply-transform : Translate dist 0
save 'revertDoubleQuote'
save 'revertDoubleQuote' 0x201F
sketch # prime
local wide : WIDTH * 0.1

Binary file not shown.

Before

Width:  |  Height:  |  Size: 163 KiB

After

Width:  |  Height:  |  Size: 163 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 396 KiB

After

Width:  |  Height:  |  Size: 396 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 339 KiB

After

Width:  |  Height:  |  Size: 339 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 174 KiB

After

Width:  |  Height:  |  Size: 174 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 336 KiB

After

Width:  |  Height:  |  Size: 336 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 900 KiB

After

Width:  |  Height:  |  Size: 900 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 319 KiB

After

Width:  |  Height:  |  Size: 319 KiB

Before After
Before After

View file

@ -85,8 +85,8 @@ define [buildGSUB para glyphs glyphList markGlyphs] : begin
set features.(tag1) {tag1}
commonList.push tag2 tag1
MakePairFrature 'hwid' 'fwid'
MakePairFrature 'lnum' 'onum'
if (!para.forceMonospace || para.spacing > 0) : MakePairFrature 'hwid' 'fwid'
# CCMP
buildCCMP chain-rule markGlyphs commonList features lookups

View file

@ -1,9 +1,10 @@
const fs = require("fs-extra");
const path = require("path");
const parseVariantsData = require("../generate-snapshot-page/parse-variants-data");
const parseLigationData = require("../generate-snapshot-page/ligation-data");
const getCharMapAndSupportedLanguageList = require("../generate-supported-languages/proc");
const version = require("../../package.json").version;
const charMapPath = process.argv[2];
const exportPath = process.argv[3];
main().catch(e => {
@ -16,5 +17,5 @@ async function main() {
const variantsData = await parseVariantsData();
const ligationData = await parseLigationData();
const cl = await getCharMapAndSupportedLanguageList(charMapPath);
await fs.writeJson(exportPath, { variantsData, ligationData, ...cl }, { spaces: 2 });
await fs.writeJson(exportPath, { version, variantsData, ligationData, ...cl }, { spaces: 2 });
}