Skip to content

Commit 0fb14ef

Browse files
committed
gonville scaled
1 parent ddd0e84 commit 0fb14ef

File tree

6 files changed

+796
-796
lines changed

6 files changed

+796
-796
lines changed

entry/vexflow-font-gonville.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// [VexFlow](https://vexflow.com) - Copyright (c) Mohit Muthanna 2010.
22
// MIT License
33

4-
import { GonvilleFont } from '../src/fonts/gonville_glyphs';
4+
import { GonvilleSmuflFont } from '../src/fonts/gonville_glyphs';
55
import { GonvilleMetrics } from '../src/fonts/gonville_metrics';
66

77
export const Font = {
8-
data: GonvilleFont,
8+
data: GonvilleSmuflFont,
99
metrics: GonvilleMetrics,
1010
};
1111
export default Font;

src/fonts/gonville_glyphs.ts

Lines changed: 787 additions & 787 deletions
Large diffs are not rendered by default.

src/fonts/load_gonville.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
// MIT License
33

44
import { Font } from '../font';
5-
import { GonvilleFont } from './gonville_glyphs';
5+
import { GonvilleSmuflFont } from './gonville_glyphs';
66
import { GonvilleMetrics } from './gonville_metrics';
77

88
export function loadGonville() {
9-
Font.load('Gonville', GonvilleFont, GonvilleMetrics);
9+
Font.load('Gonville', GonvilleSmuflFont, GonvilleMetrics);
1010
}
-245 KB
Binary file not shown.
258 KB
Binary file not shown.

tools/fonts/fontgen_smufl.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ function toVFPath(glyph) {
4545
const pathStr = ops.join(' ');
4646

4747
return {
48-
x_min: bb.x1,
49-
x_max: bb.x2,
50-
y_min: bb.y1,
51-
y_max: bb.y2,
52-
ha: bb.y2 - bb.y1,
48+
x_min: Math.round(bb.x1),
49+
x_max: Math.round(bb.x2),
50+
y_min: Math.round(bb.y1),
51+
y_max: Math.round(bb.y2),
52+
ha: Math.round(bb.y2 - bb.y1),
5353
o: pathStr,
5454
};
5555
}

0 commit comments

Comments
 (0)