-
-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #412 from asciinema/font-improvements
Font related improvements
- Loading branch information
Showing
16 changed files
with
151 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
@font-face { | ||
font-family: "FiraCode Nerd Font"; | ||
src: local(Fira Code Regular Nerd Font Complete Mono), | ||
local(Fira Code Regular Nerd Font Complete), | ||
url("../../static/fonts/Fira Code Regular Nerd Font Complete Mono.ttf") format("truetype"); | ||
font-stretch: normal; | ||
font-style: normal; | ||
font-weight: 400; | ||
} | ||
|
||
@font-face { | ||
font-family: "FiraCode Nerd Font"; | ||
src: local(Fira Code Bold Nerd Font Complete Mono), | ||
local(Fira Code Bold Nerd Font Complete), | ||
url("../../static/fonts/Fira Code Bold Nerd Font Complete Mono.ttf") format("truetype"); | ||
font-stretch: normal; | ||
font-style: normal; | ||
font-weight: 700; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
@font-face { | ||
font-family: "JetBrainsMono Nerd Font"; | ||
src: local(JetBrains Mono Regular Nerd Font Complete Mono), | ||
local(JetBrains Mono Regular Nerd Font Complete), | ||
url("../../static/fonts/JetBrains Mono Regular Nerd Font Complete Mono.ttf") format("truetype"); | ||
font-stretch: normal; | ||
font-style: normal; | ||
font-weight: 400; | ||
} | ||
|
||
@font-face { | ||
font-family: "JetBrainsMono Nerd Font"; | ||
src: local(JetBrains Mono Bold Nerd Font Complete Mono), | ||
local(JetBrains Mono Bold Nerd Font Complete), | ||
url("../../static/fonts/JetBrains Mono Bold Nerd Font Complete Mono.ttf") format("truetype"); | ||
font-stretch: normal; | ||
font-style: normal; | ||
font-weight: 700; | ||
} | ||
|
||
@font-face { | ||
font-family: "JetBrainsMono Nerd Font"; | ||
src: local(JetBrains Mono Italic Nerd Font Complete Mono), | ||
local(JetBrains Mono Italic Nerd Font Complete), | ||
url("../../static/fonts/JetBrains Mono Italic Nerd Font Complete Mono.ttf") format("truetype"); | ||
font-stretch: normal; | ||
font-style: italic; | ||
font-weight: 400; | ||
} | ||
|
||
@font-face { | ||
font-family: "JetBrainsMono Nerd Font"; | ||
src: local(JetBrains Mono Bold Italic Nerd Font Complete Mono), | ||
local(JetBrains Mono Bold Italic Nerd Font Complete), | ||
url("../../static/fonts/JetBrains Mono Bold Italic Nerd Font Complete Mono.ttf") format("truetype"); | ||
font-stretch: normal; | ||
font-style: italic; | ||
font-weight: 700; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+2.17 MB
assets/static/fonts/JetBrains Mono Bold Italic Nerd Font Complete Mono.ttf
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+2.17 MB
assets/static/fonts/JetBrains Mono Italic Nerd Font Complete Mono.ttf
Binary file not shown.
Binary file added
BIN
+2.17 MB
assets/static/fonts/JetBrains Mono Regular Nerd Font Complete Mono.ttf
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
priv/repo/migrations/20230402201325_add_terminal_line_height_to_asciicasts.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
defmodule Asciinema.Repo.Migrations.AddTerminalLineHeightToAsciicasts do | ||
use Ecto.Migration | ||
|
||
def change do | ||
alter table(:asciicasts) do | ||
add :terminal_line_height, :float | ||
end | ||
end | ||
end |
9 changes: 9 additions & 0 deletions
9
priv/repo/migrations/20230403182405_add_terminal_font_family_to_asciicasts.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
defmodule Asciinema.Repo.Migrations.AddTerminalFontFamilyToAsciicasts do | ||
use Ecto.Migration | ||
|
||
def change do | ||
alter table(:asciicasts) do | ||
add :terminal_font_family, :string | ||
end | ||
end | ||
end |