Skip to content

Commit

Permalink
SC font update.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Jun 27, 2024
1 parent 64ec8b7 commit 17d3152
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/disp/disp_sc.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ let ScDisplay = class extends RootDisplay {
// Show text
ctx.fillStyle = "#000";
ctx.textAlign = "left";
ctx.font = '600 16px "Nunito Sans"';
ctx.font = '420 16px "Work Sans"';
ctx.textRendering = "geometricPrecision";
ctx.fillText("PART", 21, 20);
ctx.fillText("INSTRUMENT", 154, 20);
Expand All @@ -135,7 +135,6 @@ let ScDisplay = class extends RootDisplay {
ctx.fillText("KEY SHIFT", 21, 233);
ctx.fillText("MIDI CH", 154, 233);
ctx.textAlign = "center";
ctx.font = '400 16px "Arial Web"';
ctx.textRendering = "auto";
for (let c = 1; c <= 16; c ++) {
ctx.fillText(`${c}`, 308 + cmpHeightX * c, 300);
Expand Down
5 changes: 5 additions & 0 deletions test/css/fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
font-display: swap;
src: url("../font/PublicSans.woff2") format("woff2");
}
@font-face {
font-family: "Work Sans";
font-display: swap;
src: url("../font/WorkSans.woff2") format("woff2");
}
@font-face {
font-family: "Nunito Sans";
font-display: swap;
Expand Down
Binary file added test/font/WorkSans.woff2
Binary file not shown.

0 comments on commit 17d3152

Please sign in to comment.