Skip to content

Commit b9c7d49

Browse files
Merge pull request #45 from eigilnikolajsen/feature/regular-400
Feature/regular 400
2 parents e824d27 + 0ebf920 commit b9c7d49

File tree

104 files changed

+59
-163
lines changed

Some content is hidden

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

104 files changed

+59
-163
lines changed

404.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
<style>
2020
@font-face {
2121
font-family: "CommitMono";
22-
src: url("/src/fonts/fontlab/CommitMonoV136-VF.woff2");
22+
src: url("/src/fonts/fontlab/CommitMonoV137-VF.woff2");
2323
font-style: normal;
24-
font-weight: 450;
24+
font-weight: 400;
2525
font-display: swap;
2626
}
2727
body {

index.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,8 @@ <h2>Choose download alternate characters</h2>
618618
<p id="custom_settings_feedback"><br /></p>
619619
<br />
620620
<p tabindex="0" data-edit="true">
621-
Changing the settings above changes the download. Recommended weight: 450 for
622-
dark mode, 500 for light mode. Alternate characters will be baked and features
621+
Changing the settings above changes the download. Recommended weight: 400 for
622+
dark mode, 450 for light mode. Alternate characters will be baked and features
623623
merged, resulting in a single static font file that is compatible in all
624624
environments. For an installation guide, see
625625
<button
@@ -684,13 +684,13 @@ <h2>
684684
<ul>
685685
<li>
686686
<p>
687-
CommitMono-450-Regular: Base version with settings and weight of
687+
CommitMono-400-Regular: Base version with settings and weight of
688688
your choice.
689689
</p>
690690
</li>
691691
<li>
692692
<p>
693-
CommitMono-450-Italic: Italic version, same weight as regular.
693+
CommitMono-400-Italic: Italic version, same weight as regular.
694694
</p>
695695
</li>
696696
<li>
@@ -1197,14 +1197,14 @@ <h2>Programs used</h2>
11971197
<div tabindex="0" id="block_tab_end"></div>
11981198
</div>
11991199
<script>
1200-
const versionOfCommitMono = "V136"
1200+
const versionOfCommitMono = "V137"
12011201
let fontsLoaded = false
12021202
const commitMono = new FontFace(
12031203
"CommitMono",
12041204
`url(/src/fonts/fontlab/CommitMono${versionOfCommitMono}-VF.woff2)`,
12051205
{
12061206
style: "normal",
1207-
weight: "450",
1207+
weight: "400",
12081208
}
12091209
)
12101210
// Add to the document.fonts (FontFaceSet)

src/css/loading.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
font-family: "CommitMonoLoading";
33
src: url("data:font/woff2;charset=url-8;base64,d09GMk9UVE8AAAVoAAoAAAAACRAAAAUgAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAADYcqGhYGYACCcgE2AiQDIgQGBYQhByAbVAgRZJPTIvuRkLnpo1niWFGcZNnEK1FCUU4/x8PT2u/PnZ3dh6g3CJGQRBORpJVGg67f6q9Ns3ed4+/dNQeGD6Q1Nv+/r3HXBE48osgCyvt7NvUTYnINZZJwUNelEzGpqkxUH92fDB0zXaUP82xFMJQsXXOHVdpANttEIhM32xM/y6P+MHZhAh4hJxTKBbrhm89nfEyZeMKSimREp600nifplvNJJ34a/VkBz5F8L+EFZeCFSvKWUsig+NR/R0ZgyZDGIvDSwGSjyt9iLXIEIdUwnqN2Eiag0Go3YpZ2uyOTcHUKJe4KKRInfhZA3BH3KPTa1jUwMjW34E8oZC3tOm14RybSiV8CM8EswZ2BYK7G3WoT1eM4OBCww4CQ/0grvTR5bXZ2cnJ2ztqkpUvXrlvCqo+2rtrF72jXPnwM5x5SebwLrKI9x4/tO2lFSnl5RkqXP9vhF3Ul/HqgT++reCFN7bm85urm6zukd8WH8k80PNbBHMnbfi1Ygsk+Ewyn2MfivKuFiQ361vzVM1du3zn/BDf0iAjL9o2Z7Kaj8lzaxn2+WZ1am9An5uYS0pab2kJMyaNISGuk3cc/AwUa3/jsxbNaA1Zj1eQ+7hzYJknff3H9xQ2X10rviU83nGku0fFVXjj3lKRp3YzUkXqsdcIK7MlRebjPGywHbWdlRmsSq8ar2qD/nYftsKFtQpe269bK+0M6YduD7Q+pd0egDK7T4xblNzXn5TU15i0a6//gheO5RryXpn4MaUzfumjq+JV2jhNSy3PSk4u5wcn0rF1rF8/Uub+bADqw+Nr59fHICkywWC+mvh7ZsjskJtw/ONybOxYRfSpWD8SDuz8zjqTsjuUeteER4r7GX9u189IOPSYHDDabGjkvYx1XZeXVe3auX6lbE7Q5dh+rPn+TZ25+ASst7DVeZPWQegNkD97hJjbwq/CJoeD2h8EGMfUF5N3G9PKkdZlZiUm69/rEZcvXrV+2kBPb+W83Cdj1iIR6GEvzleUvdf2zV4KN6saCJDP1ekAs2yY5sGnDiY364WsyHnLqsB33IgA9hIPie6f1gCbJx/L2Ow0ZC4aw+PcjnpAAOfam9ahZa6dsYk8/GvQnTaw+eot3ukU0PYKqxySUHaWB+QwyMKhka5BhRmuDLakBSj/BFsBwt4SuEx+DCnLUP375st6AVedNNLhy6qPe3VO8n5zHhd5ivMo7ylty1Js/4w3T4gopc6PsthzOKW7fViozCyOr7ihV/Adj6KaLIAu6KMJTL+80vZKGuIJqm/Gc4ARBye4ep2gcIxAk2uHOt6z2oeI+AnMMHrwKfRBX1Yn/XgiqV+jDEvAAaUpQVMbhQqVPiQYFmGITYUPjK626Tk2Kq04ULit/PgOKGsEbWgtt27SjQ6fsHBgRZstv321OjERlQLEZl0IalH5zlJ/leblVov5H/A/7H/o/GFkrVe6Hj7cN3r2/07C4d8BPVfUG4UvYu0B7XoTTKBQvTgILkkKgWl1ZeII95O98bdJy+6Y6fmDlb51Xaocv2hU3QDqOGmDnfJm6PNe1hP6x6pJWSEiBbFwE1Lptypq0/jU2kWUoLNhDkPS4AZUzL5Bt+YHaRHDSBhKjb+N2c7H+U0jpsxD/Imn8NZKvzdrGzuo09DDFCJvgDVwXEcOKxvB0IrnZ0UzDHZbzF5JiEhhaTrOlQlHaWpaS0GVp19ozUcDlJtuojBhThsdj6sLDGy/MoCNODT2409BVrVsWGh9kAA==");
44
font-style: normal;
5-
font-weight: 450;
5+
font-weight: 400;
66
font-display: swap;
77
}
88
*,

src/css/style.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ a:focus,
150150

151151
i {
152152
font-style: normal;
153-
font-variation-settings: "wght" 450, "ital" 1;
153+
font-variation-settings: "wght" 400, "ital" 1;
154154
}
155155

156156
h1 {

src/fonts/CommitMono-1.137.zip

949 KB
Binary file not shown.

src/fonts/CommitMono.zip

-698 KB
Binary file not shown.
-259 KB
Binary file not shown.
-260 KB
Binary file not shown.
-261 KB
Binary file not shown.
-261 KB
Binary file not shown.

src/fonts/export/custom-settings.json

-1
This file was deleted.

src/fonts/export/installation.txt

-25
This file was deleted.

src/fonts/export/license.txt

-90
This file was deleted.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-152 KB
Binary file not shown.
-147 KB
Binary file not shown.
-155 KB
Binary file not shown.
-147 KB
Binary file not shown.
-154 KB
Binary file not shown.
-149 KB
Binary file not shown.
-154 KB
Binary file not shown.
-149 KB
Binary file not shown.
-155 KB
Binary file not shown.
-148 KB
Binary file not shown.
-155 KB
Binary file not shown.
-148 KB
Binary file not shown.
-154 KB
Binary file not shown.
-149 KB
Binary file not shown.
-155 KB
Binary file not shown.
-149 KB
Binary file not shown.
-154 KB
Binary file not shown.
-149 KB
Binary file not shown.
-154 KB
Binary file not shown.
-149 KB
Binary file not shown.
-155 KB
Binary file not shown.
-149 KB
Binary file not shown.
-155 KB
Binary file not shown.
-149 KB
Binary file not shown.
-154 KB
Binary file not shown.
-150 KB
Binary file not shown.
-155 KB
Binary file not shown.
-151 KB
Binary file not shown.
-156 KB
Binary file not shown.
-151 KB
Binary file not shown.
-155 KB
Binary file not shown.
-151 KB
Binary file not shown.
-153 KB
Binary file not shown.
-150 KB
Binary file not shown.
-83.1 KB
Binary file not shown.
152 KB
Binary file not shown.
Binary file not shown.
156 KB
Binary file not shown.
Binary file not shown.
155 KB
Binary file not shown.
Binary file not shown.
154 KB
Binary file not shown.
Binary file not shown.
155 KB
Binary file not shown.
Binary file not shown.
155 KB
Binary file not shown.
Binary file not shown.
155 KB
Binary file not shown.
Binary file not shown.
155 KB
Binary file not shown.
Binary file not shown.
155 KB
Binary file not shown.
Binary file not shown.
155 KB
Binary file not shown.
Binary file not shown.
154 KB
Binary file not shown.
Binary file not shown.
155 KB
Binary file not shown.
Binary file not shown.
155 KB
Binary file not shown.
Binary file not shown.
154 KB
Binary file not shown.
Binary file not shown.
156 KB
Binary file not shown.
Binary file not shown.
154 KB
Binary file not shown.
Binary file not shown.
155 KB
Binary file not shown.
Binary file not shown.
155 KB
Binary file not shown.
Binary file not shown.
156 KB
Binary file not shown.
Binary file not shown.
155 KB
Binary file not shown.
Binary file not shown.
153 KB
Binary file not shown.
Binary file not shown.
83.6 KB
Binary file not shown.

src/js/code_section.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ async function updateCodeFont() {
5454
})
5555
.catch((err) => console.log(err))
5656
// opentype
57-
// .load("src/fonts/fontlab/CommitMonoV136-500Regular.otf")
57+
// .load("src/fonts/fontlab/CommitMonoV137-500Regular.otf")
5858
// .then((font) => {
5959
// console.log(font)
6060
// console.log(font.toTables())

src/js/download_wizard.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
const downloadSettingsCustom = {
2-
weight: 450,
2+
weight: 400,
33
italic: false,
44
alternates: {},
55
features: {},
66
letterSpacing: 0,
77
lineHeight: 1,
88
}
99
const downloadSettingsDefault = {
10-
weight: 450,
10+
weight: 400,
1111
italic: false,
1212
alternates: {},
1313
features: {},
@@ -72,7 +72,7 @@ async function downloadFont(kindOfDownload, button) {
7272
}
7373
}
7474
if (kindOfDownload === "design") {
75-
for (let weight = 300; weight <= 700; weight += 25) {
75+
for (let weight = 200; weight <= 700; weight += 25) {
7676
allSettings[weight + "Regular"] = {
7777
...downloadSettingsCustom,
7878
style: weight + "Regular",
@@ -118,7 +118,7 @@ function makeCustomFont(settings) {
118118
const fontWeight = settings.weight
119119
const fontItalic = settings.italic ? "Italic" : "Regular"
120120
const fontFilePath = `${fontBaseURL}${fontName}-${fontWeight}${fontItalic}.otf`
121-
// "/src/fonts/fontlab/CommitMonoV132-450Italic.otf"
121+
// "/src/fonts/fontlab/CommitMonoV132-400Italic.otf"
122122

123123
return opentype
124124
.load(fontFilePath)

src/js/example_section.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function buildExample() {
6868
input.classList.add("example_weight")
6969
input.value = weight
7070
input.dataset.forform = "weight_form"
71-
if (index == 6) {
71+
if (weight == 400) {
7272
input.setAttribute("checked", "true")
7373
}
7474
const label = document.createElement("label")
@@ -193,7 +193,7 @@ function updateFont(event, form) {
193193
input.classList.add("loading_font")
194194
const outputFont = new FontFace(output, `url(/src/fonts/other/${output}.woff2)`, {
195195
style: "normal",
196-
weight: "450",
196+
weight: "400",
197197
})
198198
document.fonts.add(outputFont)
199199
outputFont.load()

src/js/nav.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,12 @@ function keyDown(e) {
163163

164164
if (e.key == "b" || e.key == "l") {
165165
if (e.key == "b") websiteData.weight = websiteData.weight == 700 ? 700 : websiteData.weight + 25
166-
if (e.key == "l") websiteData.weight = websiteData.weight == 300 ? 300 : websiteData.weight - 25
166+
if (e.key == "l") websiteData.weight = websiteData.weight == 200 ? 200 : websiteData.weight - 25
167167
updateCodeFont()
168168
document.querySelector("body").style.fontVariationSettings = `"wght" ${websiteData.weight}, "ital" ${
169169
websiteData.italic ? "1" : "0"
170170
}`
171-
showHideChangeSettings(`Weight: ${websiteData.weight}. Def: 450, Min: 300, Max: 700.`)
171+
showHideChangeSettings(`Weight: ${websiteData.weight}. Def: 400, Min: 200, Max: 700.`)
172172
document.forms["weight_form"][`weight_${websiteData.weight}`].checked = true
173173
updateWeight(null, weightForm)
174174
}
@@ -345,8 +345,8 @@ function pushPage(key) {
345345
document.querySelector("#canvas").style.transform = "scale(1)"
346346
rem = 16
347347
document.documentElement.style.fontSize = "16px"
348-
websiteData.weight = 450
349-
document.querySelector("body").style.fontVariationSettings = `"wght" 450`
348+
websiteData.weight = 400
349+
document.querySelector("body").style.fontVariationSettings = `"wght" 400`
350350
document.forms["weight_form"][`weight_${websiteData.weight}`].checked = true
351351
codeExample.style.fontFamily = "CommitMono"
352352
document.querySelector("#font_name").value = ""
@@ -472,8 +472,8 @@ function checkTutorialKeys(e) {
472472
tutorialFinished = true
473473
const tutorialContainer = document.querySelector("#tutorial_complete")
474474
tutorialContainer.innerHTML = `<p>Tutorial complete! Your present is the variable version of Commit Mono:</p>
475-
<p><a href="/src/fonts/fontlab/CommitMonoV136-VF.ttf" tabindex="0">Download CommitMono-VF.ttf</a></p>
476-
<p><a href="/src/fonts/fontlab/CommitMonoV136-VF.woff2" tabindex="0">Download CommitMono-VF.woff2</a></p>
475+
<p><a href="/src/fonts/fontlab/CommitMonoV137-VF.ttf" tabindex="0">Download CommitMono-VF.ttf</a></p>
476+
<p><a href="/src/fonts/fontlab/CommitMonoV137-VF.woff2" tabindex="0">Download CommitMono-VF.woff2</a></p>
477477
<br />`
478478
}
479479
}

src/js/website_data.js

+6-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/language_examples/html.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
@font-face {
99
font-family: "CommitMono";
1010
src: url("/fonts/CommitMono.woff2");
11-
font-weight: 450;
11+
font-weight: 400;
1212
}
1313
:root {
1414
--grey: #aaa;

0 commit comments

Comments
 (0)