Skip to content

Commit

Permalink
Merge pull request #1193 from eed3si9n/wip/typeface
Browse files Browse the repository at this point in the history
Use better and open typeface
  • Loading branch information
eed3si9n authored Feb 22, 2024
2 parents 7108487 + 3175a45 commit 5425b3a
Show file tree
Hide file tree
Showing 9 changed files with 158 additions and 8 deletions.
2 changes: 1 addition & 1 deletion book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title = "The Book of sbt"

[output.html]
theme = "theme"
additional-css = ["src/reference/custom-2024.css", "src/reference/mdbook-admonish.css"]
additional-css = ["src/reference/custom-202402.css", "src/reference/mdbook-admonish.css"]
cname = "www.scala-sbt.org"

[preprocessor.variables]
Expand Down
7 changes: 0 additions & 7 deletions src/reference/custom-2024.css

This file was deleted.

28 changes: 28 additions & 0 deletions src/reference/custom-202402.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
html {
font-family: "Lora";
}

:root {
font-size: 90%;
}

pre {
border: solid 1px lightgray;
}

h1 {
font-family: 'Linux Biolinum';
}

h1.menu-title {
font-family: "Lora";
font-size: 1.5rem;
}

h2 {
font-family: 'Linux Biolinum';
}

h3 {
font-family: 'Linux Biolinum';
}
Binary file added theme/fonts/LinBiolinum_R.otf
Binary file not shown.
Binary file added theme/fonts/LinBiolinum_RB.otf
Binary file not shown.
Binary file added theme/fonts/LinBiolinum_RI.otf
Binary file not shown.
Binary file added theme/fonts/Lora-Italic[wght].ttf
Binary file not shown.
Binary file added theme/fonts/Lora[wght].ttf
Binary file not shown.
129 changes: 129 additions & 0 deletions theme/fonts/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
@font-face{
font-family: Lora;
src: url(Lora[wght].ttf);
}

@font-face{
font-family: Lora;
font-style: italic;
src: url(Lora-Italitc[wght].ttf);
}

@font-face{
font-family: "Linux Biolinum";
font-style: normal;
src: url(LinBiolinum_R.otf);
}

@font-face{
font-family: "Linux Biolinum";
font-weight: bold;
src: url(LinBiolinum_RB.otf);
}

@font-face{
font-family: "Linux Biolinum";
font-style: italic;
src: url(LinBiolinum_RI.otf);
}

/* Open Sans is licensed under the Apache License, Version 2.0. See http://www.apache.org/licenses/LICENSE-2.0 */
/* Source Code Pro is under the Open Font License. See https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL */

/* open-sans-300 - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
src: local('Open Sans Light'), local('OpenSans-Light'),
url('open-sans-v17-all-charsets-300.woff2') format('woff2');
}

/* open-sans-300italic - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 300;
src: local('Open Sans Light Italic'), local('OpenSans-LightItalic'),
url('open-sans-v17-all-charsets-300italic.woff2') format('woff2');
}

/* open-sans-regular - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans Regular'), local('OpenSans-Regular'),
url('open-sans-v17-all-charsets-regular.woff2') format('woff2');
}

/* open-sans-italic - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 400;
src: local('Open Sans Italic'), local('OpenSans-Italic'),
url('open-sans-v17-all-charsets-italic.woff2') format('woff2');
}

/* open-sans-600 - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'),
url('open-sans-v17-all-charsets-600.woff2') format('woff2');
}

/* open-sans-600italic - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 600;
src: local('Open Sans SemiBold Italic'), local('OpenSans-SemiBoldItalic'),
url('open-sans-v17-all-charsets-600italic.woff2') format('woff2');
}

/* open-sans-700 - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
src: local('Open Sans Bold'), local('OpenSans-Bold'),
url('open-sans-v17-all-charsets-700.woff2') format('woff2');
}

/* open-sans-700italic - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 700;
src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'),
url('open-sans-v17-all-charsets-700italic.woff2') format('woff2');
}

/* open-sans-800 - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 800;
src: local('Open Sans ExtraBold'), local('OpenSans-ExtraBold'),
url('open-sans-v17-all-charsets-800.woff2') format('woff2');
}

/* open-sans-800italic - latin_vietnamese_latin-ext_greek-ext_greek_cyrillic-ext_cyrillic */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 800;
src: local('Open Sans ExtraBold Italic'), local('OpenSans-ExtraBoldItalic'),
url('open-sans-v17-all-charsets-800italic.woff2') format('woff2');
}

/* source-code-pro-500 - latin_vietnamese_latin-ext_greek_cyrillic-ext_cyrillic */
@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 500;
src: url('source-code-pro-v11-all-charsets-500.woff2') format('woff2');
}

0 comments on commit 5425b3a

Please sign in to comment.