Skip to content

Commit

Permalink
fix #148 add monolisa
Browse files Browse the repository at this point in the history
many thanks @MarcusSterz
  • Loading branch information
braver committed Apr 24, 2024
1 parent 68051ed commit b4497b9
Show file tree
Hide file tree
Showing 11 changed files with 72 additions and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ We've been able to license some commercial fonts for programmingfonts.org, but t
- Lucida Console: https://learn.microsoft.com/en-us/typography/font-list/lucida-console
- Menlo: https://en.wikipedia.org/wiki/Menlo_(typeface)
- Monaco: https://en.wikipedia.org/wiki/Monaco_(typeface)
- MonoLisa: https://www.monolisa.dev
- Native: https://fortfoundry.com/fonts/native
- Operator: https://www.typography.com/fonts/operator/overview
- PragmataPro: https://fsd.it/shop/fonts/pragmatapro/
Expand Down
13 changes: 13 additions & 0 deletions fonts.json
Original file line number Diff line number Diff line change
Expand Up @@ -1526,6 +1526,19 @@
"year": 2015,
"zerostyle": "slashed"
},
"monolisa": {
"author": "FaceType",
"description": "MonoLisa was designed by professionals to improve developers’ productivity and reduce fatigue.",
"license": "commercial",
"ligatures": true,
"name": "MonoLisa",
"rendering": "vector",
"style": "sans",
"variants": "9 weights with italics, a variable version, and OpenType alternatives for slashed zeroes, ligatures, etc.",
"website": "https://www.monolisa.dev",
"year": 2022,
"zerostyle": "dotted"
},
"mononoki": {
"author": "Matthias Tellen",
"description": "A font for programming and code review",
Expand Down
Binary file added fonts/resources/monolisa/0-normal.woff2
Binary file not shown.
Binary file added fonts/resources/monolisa/1-italic.woff2
Binary file not shown.
Binary file added fonts/resources/monolisa/2-normal.woff2
Binary file not shown.
Binary file added fonts/resources/monolisa/3-italic.woff2
Binary file not shown.
Binary file added fonts/resources/monolisa/4-normal.woff2
Binary file not shown.
Binary file added fonts/resources/monolisa/5-italic.woff2
Binary file not shown.
55 changes: 55 additions & 0 deletions fonts/resources/monolisa/monolisa.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/*!
* @preserve
* MonoLisa 2.013
* This font is subject to a EULA. A user-licence can be acquired at:
* https://www.monolisa.dev/license
* © 2024 FaceType Foundry. All Rights Reserved.
*/

@font-face {
src: url(0-normal.woff2) format("woff2");
font-family: monolisa;
font-weight: 100 900;
font-style: normal;
unicode-range: U+0020-007F;
}

@font-face {
src: url(1-italic.woff2) format("woff2");
font-family: monolisa;
font-weight: 100 900;
font-style: italic;
unicode-range: U+0020-007F;
}

@font-face {
src: url(2-normal.woff2) format("woff2");
font-family: monolisa;
font-weight: 100 900;
font-style: normal;
unicode-range: U+2300-23FF;
}

@font-face {
src: url(3-italic.woff2) format("woff2");
font-family: monolisa;
font-weight: 100 900;
font-style: italic;
unicode-range: U+2300-23FF;
}

@font-face {
src: url(4-normal.woff2) format("woff2");
font-family: monolisa;
font-weight: 100 900;
font-style: normal;
unicode-range: U+2190-21FF;
}

@font-face {
src: url(5-italic.woff2) format("woff2");
font-family: monolisa;
font-weight: 100 900;
font-style: italic;
unicode-range: U+2190-21FF;
}
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@
<!-- input mono -->
<link href="//cloud.webtype.com/css/7e544c5e-55dc-4b41-a8d3-c13f7e0a13d3.css" rel="stylesheet" type="text/css">

<!-- monolisa -->
<link href="fonts/resources/monolisa/monolisa.css" rel="stylesheet" type="text/css">

<link rel="stylesheet" href="fonts/stylesheets/stylesheet.css"><!-- Compiled (using less on node) with "lessc fonts.less > stylesheet.css" -->
<link rel="stylesheet" href="index.css">
</head>
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function getFont () {
}

if (!font) {
font = 'source-code-pro'
font = 'monolisa'
}

return font
Expand Down

0 comments on commit b4497b9

Please sign in to comment.