Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

Commit

Permalink
bundled FiraCode and changed default editor font to FiraCode
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroX-DG committed Jun 18, 2018
1 parent 7cf616f commit fc1b454
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Every notable changes in each version will be listed in this file.
- **Interface**: Prevent user select in some components
- **Development**: Added cross-env for better development in cross platform
- **Snippet**: Allow resize snippet description textarea in edit mode
- **Interace**: Bundled Fira Code font along with the app

# 0.0.1
- Single file snippet
Expand Down
26 changes: 26 additions & 0 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,32 @@
text-rendering: optimizeLegibility;
}
</style>
<style>
@font-face {
font-family: Fira Code;
src: url('../resources/fonts/firacode/FiraCode-Regular.ttf');
font-weight: normal;
text-rendering: optimizeLegibility;
}
@font-face {
font-family: Fira Code;
src: url('../resources/fonts/firacode/FiraCode-Bold.ttf');
font-weight: 700;
text-rendering: optimizeLegibility;
}
@font-face {
font-family: Fira Code;
src: url('../resources/fonts/firacode/FiraCode-Light.ttf');
font-weight: 300;
text-rendering: optimizeLegibility;
}
@font-face {
font-family: Fira Code;
src: url('../resources/fonts/firacode/FiraCode-Medium.ttf');
font-weight: 500;
text-rendering: optimizeLegibility;
}
</style>
<link rel='stylesheet' href='../node_modules/devicon/devicon.min.css'>
</head>

Expand Down
2 changes: 1 addition & 1 deletion browser/lib/config-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const DEFAULT_CONFIG = {
editor: {
showLineNumber: true,
theme: 'seti',
fontFamily: 'Consolas, sans-serif',
fontFamily: 'Fira Code, Consolas, sans-serif',
fontSize: 18,
indentUsingTab: false,
tabSize: 2
Expand Down
Binary file added resources/fonts/firacode/FiraCode-Bold.ttf
Binary file not shown.
Binary file added resources/fonts/firacode/FiraCode-Light.ttf
Binary file not shown.
Binary file added resources/fonts/firacode/FiraCode-Medium.ttf
Binary file not shown.
Binary file added resources/fonts/firacode/FiraCode-Regular.ttf
Binary file not shown.

0 comments on commit fc1b454

Please sign in to comment.