Skip to content

Commit

Permalink
fix(app): use monospace font (#9)
Browse files Browse the repository at this point in the history
Default font was not monospace which causing
that some ASCII picture in comments was
not generated correctly. Using monospace
font should solve this issue.
  • Loading branch information
jakuboskera authored Mar 31, 2022
1 parent 1cc3351 commit 866fa14
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app/static/css/main.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
@font-face {
font-family: 'Cousine';
src: url('../fonts/SpaceMono-Regular.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/SpaceMono-Regular.woff') format('woff'), /* Pretty Modern Browsers */
url('../fonts/SpaceMono-Regular.ttf') format('truetype')/* Safari, Android, iOS */
}

body.bootstrap,
body.bootstrap-dark {
font-family: 'Cousine', monospace !important;
line-height: 1 !important;
}

.multiline {
white-space: pre-wrap;
}
Expand Down
Binary file added app/static/fonts/SpaceMono-Regular.ttf
Binary file not shown.
Binary file added app/static/fonts/SpaceMono-Regular.woff
Binary file not shown.
Binary file added app/static/fonts/SpaceMono-Regular.woff2
Binary file not shown.

0 comments on commit 866fa14

Please sign in to comment.