Skip to content

Commit 0bb286e

Browse files
switch bold and italic in macStyle
1 parent cd3ca02 commit 0bb286e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/js/code_section.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ async function updateCodeFont() {
5555
.catch((err) => console.log(err))
5656

5757
// opentype
58-
// .load("src/fonts/CommitMonoV133-500Regular.ttf")
58+
// .load("src/fonts/CommitMonoV133-500Regular.otf")
5959
// .then((font) => {
6060
// console.log(font)
6161
// console.log(font.toTables())
@@ -64,7 +64,7 @@ async function updateCodeFont() {
6464
// .catch((err) => console.log(err))
6565

6666
// opentype
67-
// .load("src/fonts/CommitMonoV133-500Regular.otf")
67+
// .load("src/fonts/other/DMMono-Regular.ttf")
6868
// .then((font) => {
6969
// console.log(font)
7070
// console.log(font.toTables())

src/js/download_wizard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ function makeCustomFont(settings) {
229229
font.tables.cff.topDict.weight = settings.weight == 700 ? "Bold" : "Regular"
230230

231231
// set correct mac style
232-
const macStyles = ["Regular", "Italic", "Bold", "Bold Italic"]
232+
const macStyles = ["Regular", "Bold", "Italic", "Bold Italic"]
233233
font.tables.head.macStyle = macStyles.indexOf(settings.style)
234234

235235
// set correct numberOfHMetrics (3 is monospace)

0 commit comments

Comments
 (0)