Skip to content

Commit 7e4844e

Browse files
committed
Release 1.0.9
2 parents 200e60f + 24961d4 commit 7e4844e

File tree

167 files changed

+61
-24
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+61
-24
lines changed

checkenv.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@ function check(util) {
1111

1212
check("otc2otf");
1313
check("otf2ttf");
14-
check("ttfautohint");

make/punct/build-continuous-em-dash.mjs

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import {
44
alterContours,
55
copyGeometryData,
66
getAdvanceHeight,
7-
getAdvanceWidth
7+
getAdvanceWidth,
8+
setAdvanceWidth
89
} from "../helpers/geometry.mjs";
910
import { GlyphFinder } from "../helpers/glyph-finder.mjs";
1011

@@ -35,22 +36,44 @@ export function buildContinuousEmDash(font) {
3536

3637
function buildHGlyph(emDash, bound) {
3738
const g1 = new Ot.Glyph();
38-
const adw = getAdvanceWidth(emDash);
39+
3940
copyGeometryData(g1, emDash);
40-
alterContours(g1, (x, y) => [
41-
x <= (bound.xMin + bound.xMax) / 2 ? bound.xMax - 1.05 * adw : x,
42-
y
41+
const adw = getAdvanceWidth(g1);
42+
g1.geometry = new Ot.Glyph.ContourSet([
43+
[
44+
Ot.Glyph.Point.create(bound.xMax - adw, bound.yMax, Ot.Glyph.PointType.Corner),
45+
Ot.Glyph.Point.create(
46+
bound.xMax - adw - (bound.yMax - bound.yMin) / 2,
47+
(bound.yMin + bound.yMax) / 2,
48+
Ot.Glyph.PointType.Corner
49+
),
50+
Ot.Glyph.Point.create(bound.xMax - adw, bound.yMin, Ot.Glyph.PointType.Corner),
51+
Ot.Glyph.Point.create(bound.xMax, bound.yMin, Ot.Glyph.PointType.Corner),
52+
Ot.Glyph.Point.create(bound.xMax, bound.yMax, Ot.Glyph.PointType.Corner)
53+
]
4354
]);
55+
4456
return g1;
4557
}
46-
function buildVGlyph(emDashV, boundV) {
58+
function buildVGlyph(emDashV, bound) {
4759
const g1 = new Ot.Glyph();
48-
const adh = getAdvanceHeight(emDashV);
60+
4961
copyGeometryData(g1, emDashV);
50-
alterContours(g1, (x, y) => [
51-
x,
52-
y >= (boundV.yMin + boundV.yMax) / 2 ? boundV.yMin + 1.05 * adh : y
62+
const adh = getAdvanceHeight(g1);
63+
g1.geometry = new Ot.Glyph.ContourSet([
64+
[
65+
Ot.Glyph.Point.create(bound.xMin, bound.yMin, Ot.Glyph.PointType.Corner),
66+
Ot.Glyph.Point.create(bound.xMax, bound.yMin, Ot.Glyph.PointType.Corner),
67+
Ot.Glyph.Point.create(bound.xMax, bound.yMin + adh, Ot.Glyph.PointType.Corner),
68+
Ot.Glyph.Point.create(
69+
(bound.xMin + bound.xMax) / 2,
70+
bound.yMin + adh + (bound.xMax - bound.xMin) / 2,
71+
Ot.Glyph.PointType.Corner
72+
),
73+
Ot.Glyph.Point.create(bound.xMin, bound.yMin + adh, Ot.Glyph.PointType.Corner)
74+
]
5375
]);
76+
5477
return g1;
5578
}
5679

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sarasa-gothic",
3-
"version": "1.0.8",
3+
"version": "1.0.9",
44
"main": "./run",
55
"scripts": {
66
"build": "verda -f verdafile.mjs",

0 commit comments

Comments
 (0)