Skip to content

Commit

Permalink
fix: replaced font "Roboto Mono" with "Hack" for better monospace & u…
Browse files Browse the repository at this point in the history
…nicode text/symbols

* Roboto Mono is missing some unicode characters used in this app, which leads to inconsistent rendering accross devices
  • Loading branch information
Endebert committed Sep 22, 2018
1 parent 149bb9d commit 5868abb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"custom-event-polyfill": "^1.0.6",
"eslint-config-mourner": "^2.0.3",
"graceful-fs": "^4.1.11",
"hack-font": "^3.3.0",
"leaflet": "^1.3.3",
"material-icons": "^0.2.3",
"performance-polyfill": "^0.0.2",
Expand All @@ -27,7 +28,6 @@
"replace": "^1.0.0",
"standard-version": "^4.4.0",
"typeface-roboto": "^0.0.54",
"typeface-roboto-mono": "^0.0.54",
"vue": "^2.5.16",
"vue-md-loader": "^1.0.0",
"vuetify": "^1.0.16",
Expand Down
6 changes: 3 additions & 3 deletions src/Map.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1723,7 +1723,7 @@ export default {
@import "~material-icons/iconfont/material-icons.css";
@import "~leaflet/dist/leaflet.css";
@import "~typeface-roboto/index.css";
@import "~typeface-roboto-mono/index.css";
@import "~hack-font/build/web/hack.css";
/*hide scrollbar*/
body {
Expand Down Expand Up @@ -1754,7 +1754,7 @@ body::-webkit-scrollbar {
border-radius: 1em;
/*font-family: monospace;*/
font-family: "Roboto Mono", monospace;
font-family: "Hack", monospace;
background-color: rgba(0, 0, 0, 0.33);
text-shadow: 0.1em 0.1em 0.2em rgba(0, 0, 0, 1);
font-size: large;
Expand All @@ -1773,7 +1773,7 @@ body::-webkit-scrollbar {
}
.font-mono {
font-family: "Roboto Mono", monospace;
font-family: "Hack", monospace;
}
.flex {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3543,6 +3543,10 @@ gzip-size@^4.1.0:
duplexer "^0.1.1"
pify "^3.0.0"

hack-font@^3.3.0:
version "3.3.0"
resolved "https://registry.yarnpkg.com/hack-font/-/hack-font-3.3.0.tgz#be36ffe9cfc318c555aa04c8c26a48d0e53230d5"

handle-thing@^1.2.5:
version "1.2.5"
resolved "https://registry.yarnpkg.com/handle-thing/-/handle-thing-1.2.5.tgz#fd7aad726bf1a5fd16dfc29b2f7a6601d27139c4"
Expand Down Expand Up @@ -7073,10 +7077,6 @@ typedarray@^0.0.6:
version "0.0.6"
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"

typeface-roboto-mono@^0.0.54:
version "0.0.54"
resolved "https://registry.yarnpkg.com/typeface-roboto-mono/-/typeface-roboto-mono-0.0.54.tgz#78e706e0a4158b2b670ed3cdf2269e7a54e671cd"

typeface-roboto@^0.0.54:
version "0.0.54"
resolved "https://registry.yarnpkg.com/typeface-roboto/-/typeface-roboto-0.0.54.tgz#8f02c9a18d1cfa7f49381a6ff0d21ff061f38ad2"
Expand Down

0 comments on commit 5868abb

Please sign in to comment.