forked from onivim/oni2
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature - UX - Semibold / italic font for UI (onivim#1182)
* Add additional font styles to UiFont * Font tweaks * Formatting
- Loading branch information
Showing
9 changed files
with
50 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
(install | ||
(section bin) | ||
(package Oni2) | ||
(files Inconsolata-Bold.ttf Inconsolata-Regular.ttf Inter-UI-Regular.ttf Inter-UI-SemiBold.ttf FiraCode-Regular.ttf FontAwesome5FreeRegular.otf FontAwesome5FreeSolid.otf selawk.ttf selawkb.ttf selawkl.ttf selawksb.ttf selawksl.ttf seti.ttf)) | ||
(files Inconsolata-Bold.ttf Inconsolata-Regular.ttf Inter-UI-Medium.ttf Inter-UI-MediumItalic.ttf Inter-UI-Regular.ttf Inter-UI-Italic.ttf Inter-UI-SemiBoldItalic.ttf Inter-UI-SemiBold.ttf Inter-UI-Bold.ttf FiraCode-Regular.ttf FontAwesome5FreeRegular.otf FontAwesome5FreeSolid.otf selawk.ttf selawkb.ttf selawkl.ttf selawksb.ttf selawksl.ttf seti.ttf)) |
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 |
---|---|---|
@@ -1,6 +1,37 @@ | ||
type t = { | ||
fontFile: string, | ||
fontFileItalic: string, | ||
fontFileBold: string, | ||
fontFileSemiBold: string, | ||
fontFileSemiBoldItalic: string, | ||
fontSize: int, | ||
}; | ||
|
||
let create = (~fontFile, ~fontSize, ()) => {fontFile, fontSize}; | ||
let create = | ||
( | ||
~fontFile, | ||
~fontFileBold, | ||
~fontFileItalic, | ||
~fontFileSemiBold, | ||
~fontFileSemiBoldItalic, | ||
~fontSize, | ||
(), | ||
) => { | ||
fontFile, | ||
fontFileBold, | ||
fontFileItalic, | ||
fontFileSemiBold, | ||
fontFileSemiBoldItalic, | ||
fontSize, | ||
}; | ||
|
||
let default = | ||
create( | ||
~fontFile="Inter-UI-Regular.ttf", | ||
~fontFileBold="Inter-UI-Bold.ttf", | ||
~fontFileItalic="Inter-UI-Italic.ttf", | ||
~fontFileSemiBold="Inter-UI-Medium.ttf", | ||
~fontFileSemiBoldItalic="Inter-UI-MediumItalic.ttf", | ||
~fontSize=12, | ||
(), | ||
); |
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
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