summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-02-11 16:44:43 +0100
committerJonas Smedegaard <dr@jones.dk>2024-02-11 17:00:03 +0100
commit715e7ab8d2764860ede9c06d99f8a12cffe053e6 (patch)
treec0ab5d13f6f3243dab47c9d38fc87f3d5e2fd29a
parent4700797fdd790b4ad7fb4bd0459519bb0bd12b3c (diff)
embed and use font Cabin for headers and widgets
-rw-r--r--_quarto.yml2
-rw-r--r--fonts/cabin/FONTLOG.txt75
-rw-r--r--fonts/cabin/README.md20
-rw-r--r--fonts/cabin/opentype/Cabin-Italic-VF.otfbin0 -> 155412 bytes
-rw-r--r--fonts/cabin/opentype/Cabin-Regular-VF.otfbin0 -> 165468 bytes
-rw-r--r--fonts/cabin/woff2/Cabin-Italic-VF.woff2bin0 -> 72160 bytes
-rw-r--r--fonts/cabin/woff2/Cabin-Regular-VF.woff2bin0 -> 68848 bytes
-rw-r--r--fonts/cabin/woff2/README.md7
-rw-r--r--styles.scss11
9 files changed, 114 insertions, 1 deletions
diff --git a/_quarto.yml b/_quarto.yml
index 8700d84..307bfe0 100644
--- a/_quarto.yml
+++ b/_quarto.yml
@@ -17,7 +17,7 @@ lang: da
mainfont: ETbb
mainfontoptions:
- Numbers=Lowercase
-sansfont: TeX Gyre Heros
+sansfont: Cabin
sansfontoptions:
- Scale=MatchLowercase
monofont: Inconsolata
diff --git a/fonts/cabin/FONTLOG.txt b/fonts/cabin/FONTLOG.txt
new file mode 100644
index 0000000..3765873
--- /dev/null
+++ b/fonts/cabin/FONTLOG.txt
@@ -0,0 +1,75 @@
+FONTLOG for the Cabin fonts
+
+This file provides detailed information on the Cabin Font Software.
+This information should be distributed along with the Cabin fonts
+and any derivative works.
+
+Basic Font Information
+
+Cabin is a Unicode typeface family that supports languages that
+use the Latin script and its variants, and could be expanded to support other
+scripts.
+
+More specifically, this release supports the following Unicode ranges: Latin-1
+
+Documentation can be found at www.impallari.com/cabin
+To contribute to the project contact Pablo Impallari at impallari@gmail.com
+
+ChangeLog
+
+20 May 2020 (multiples authors) Cabin 3.001
+- A Basic, complete VF version
+
+17 November 2016 (Kalapi Gajjar-Bordawekar) Cabin v2.100
+- Lots of minor fixes to paths, path-direction, and contour order for generating variable fonts.
+- Fixes issue #4 [https://github.com/impallari/Cabin/issues/4]
+
+06 Nov 2016 (Kalapi Gajjar-Bordawekar) Cabin v2.001
+- Fixes issue #7 [https://github.com/impallari/Cabin/issues/7]
+- Fixes issue #8 [https://github.com/impallari/Cabin/issues/8]
+
+27 Sep 2016 (Kalapi Gajjar-Bordawekar) Cabin v2.000 (Cabin, Cabin Italic, and Cabin Condensed)
+- Updated the glyph-set to Google Pro
+- Updated vertical metrics as per Khaled's scheme
+- Updated OpenType layout code (automated by Glyphs)
+
+11 Jan 2016 (Dave Crossland) Cabin v1.007
+- Edited TTF tables with TTX to fix NAME table and update OFL.txt
+
+06 Jan 2016 (Pablo Impallari) Cabin v1.005
+- Regenerated to pass the OpenType Sanitizer
+
+21 Mar 2011 (Pablo Impallari & Igino Marini) Cabin v1.005
+- Added Italics for Regular, Medium, SemiBold & Bold weights.
+
+31 Jan 2011 (Pablo Impallari & Igino Marini) Cabin v1.004
+- Added Regular, Medium and SemiBold weights.
+- Some glyphs refined.
+- iKerned by Igino Marini
+
+14 Dec 2010 (Pablo Impallari) Cabin v1.003
+- Initial release
+
+
+Acknowledgements
+
+If you make modifications be sure to add your name (N), email (E), web-address
+(if you have one) (W) and description (D). This list is in alphabetical order.
+
+N: Kalapi Gajjar-Bordawekar
+E: hello@kalapigajjar.com
+W: http://www.kalapigajjar.com
+D: Drawing fixes, character-set expansion, and font mastering
+
+N: Igino Marini
+E: mail@iginomarini.com
+W: http://www.ikern.com
+D: Spacing and Kerning
+
+N: Pablo Impallari
+E: impallari@gmail.com
+W: http://www.impallari.com
+D: Designer
+
+
+
diff --git a/fonts/cabin/README.md b/fonts/cabin/README.md
new file mode 100644
index 0000000..0f4c768
--- /dev/null
+++ b/fonts/cabin/README.md
@@ -0,0 +1,20 @@
+# Cabin Fonts
+
+The Cabin font family is a humanist sans with 4 weights and true italics, inspired by Edward Johnston’s and Eric Gill’s typefaces, with a touch of modernism.
+Cabin incorporates modern proportions, optical adjustments, and some elements of the geometric sans. It remains true to its roots, but has its own personality.
+
+The weight distribution is almost monotone, although top and bottom curves are slightly thin.
+Counters of the b, g, p and q are rounded and optically adjusted.
+The curved stem endings have a 10 degree angle.
+E and F have shorter center arms.
+M is splashed.
+
+## License
+
+- Cabin is licensed under the SIL Open Font License v1.1 (<http://scripts.sil.org/OFL>)
+- To view the copyright and specific terms and conditions please refer to [OFL.txt](https://github.com/impallari/cabin/blob/master/OFL.txt)
+
+## Authors
+
+[Pablo Impallari](http://www.impallari.com), iKerned by [Igino Marini](http://ikern.com/k1/), improved and extended by [Kalapi Gajjar-Bordawekar](https://github.com/kalapi)
+Also including contributions by [Marc Foley](https://github.com/m4rc1e) and [Lasse Fister](https://github.com/graphicore).
diff --git a/fonts/cabin/opentype/Cabin-Italic-VF.otf b/fonts/cabin/opentype/Cabin-Italic-VF.otf
new file mode 100644
index 0000000..5b2a682
--- /dev/null
+++ b/fonts/cabin/opentype/Cabin-Italic-VF.otf
Binary files differ
diff --git a/fonts/cabin/opentype/Cabin-Regular-VF.otf b/fonts/cabin/opentype/Cabin-Regular-VF.otf
new file mode 100644
index 0000000..27f71b3
--- /dev/null
+++ b/fonts/cabin/opentype/Cabin-Regular-VF.otf
Binary files differ
diff --git a/fonts/cabin/woff2/Cabin-Italic-VF.woff2 b/fonts/cabin/woff2/Cabin-Italic-VF.woff2
new file mode 100644
index 0000000..d51e46d
--- /dev/null
+++ b/fonts/cabin/woff2/Cabin-Italic-VF.woff2
Binary files differ
diff --git a/fonts/cabin/woff2/Cabin-Regular-VF.woff2 b/fonts/cabin/woff2/Cabin-Regular-VF.woff2
new file mode 100644
index 0000000..de31016
--- /dev/null
+++ b/fonts/cabin/woff2/Cabin-Regular-VF.woff2
Binary files differ
diff --git a/fonts/cabin/woff2/README.md b/fonts/cabin/woff2/README.md
new file mode 100644
index 0000000..e409a3e
--- /dev/null
+++ b/fonts/cabin/woff2/README.md
@@ -0,0 +1,7 @@
+The files in this directory are web-optimized font files
+automatically generated from equivalent OpenType fonts,
+using the command-line tool [woff2](https://github.com/google/woff2),
+specifically version 1.0.2
+built and released as Debian package version 1.0.2-2.
+
+ -- Jonas Smedegaard <dr@jones.dk> Sun, 11 Feb 2024 12:07:48 +0100
diff --git a/styles.scss b/styles.scss
index 39a3282..15b340b 100644
--- a/styles.scss
+++ b/styles.scss
@@ -5,6 +5,14 @@
// avoid web-loading internally declared default Bootswatch font
$web-font-path: "";
+// fix apply font family setting seemingly missed by quarto
+$font-family-sans-serif: "Cabin";
+
+// use sans-serif for headers and menus
+$headings-font-family: $font-family-sans-serif;
+$display-font-family: $font-family-sans-serif;
+$input-btn-font-family: $font-family-sans-serif;
+
/*-- scss:mixins --*/
@mixin font-face($name, $style, $weight, $basedir, $file) {
@@ -24,3 +32,6 @@ $web-font-path: "";
@include font-face(ETbb, italic, 400, etbb, ETbb-Italic);
@include font-face(ETbb, normal, 700, etbb, ETbb-Bold);
@include font-face(ETbb, italic, 700, etbb, ETbb-BoldItalic);
+
+@include font-face(Cabin, normal, "400 700", cabin, "Cabin-Regular-VF");
+@include font-face(Cabin, italic, "400 700", cabin, "Cabin-Italic-VF");