0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-03-28 05:48:16 +00:00

Use .woff2 files instead of base64 encoding

This commit is contained in:
Trevor Buckner
2021-03-04 21:39:37 -05:00
parent fd94d162ea
commit c28fed0893
26 changed files with 106 additions and 92 deletions

View File

@@ -1,55 +1,73 @@
/* Main Font */
/* Main Font, serif */
@font-face {
font-family: BookInsanity;
src: url('/assets/homebrewery/phb_style/fonts/Bookinsanity.otf');
font-family: BookInsanityRemake;
src: url('../fonts/v3/Bookinsanity.woff2');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: BookInsanity;
src: url('/assets/homebrewery/phb_style/fonts/Bookinsanity Bold.otf');
font-family: BookInsanityRemake;
src: url('../fonts/v3/Bookinsanity Bold.woff2');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: BookInsanity;
src: url('/assets/homebrewery/phb_style/fonts/Bookinsanity Italic.otf');
font-family: BookInsanityRemake;
src: url('../fonts/v3/Bookinsanity Italic.woff2');
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: BookInsanity;
src: url('/assets/homebrewery/phb_style/fonts/Bookinsanity Bold Italic.otf');
font-family: BookInsanityRemake;
src: url('../fonts/v3/Bookinsanity Bold Italic.woff2');
font-weight: bold;
font-style: italic;
}
/* Notes and Tables */
/* Notes and Tables, sans-serif */
@font-face {
font-family: ScalySans;
src: url('/assets/homebrewery/phb_style/fonts/Scaly Sans.otf');
font-family: ScalySansRemake;
src: url('../fonts/v3/Scaly Sans.woff2');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: ScalySansSmallCaps;
src: url('/assets/homebrewery/phb_style/fonts/Scaly Sans Caps.otf');
font-weight: normal;
font-family: ScalySansRemake;
src: url('../fonts/v3/Scaly Sans Bold.woff2');
font-weight: bold;
font-style: normal;
}
/* Fancy First Letter */
@font-face {
font-family: Solbera;
src: url('/assets/homebrewery/phb_style/fonts/Solbera Imitation.otf');
font-family: ScalySansRemake;
src: url('../fonts/v3/Scaly Sans Italic.woff2');
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: ScalySansRemake;
src: url('../fonts/v3/Scaly Sans Bold Italic.woff2');
font-weight: bold;
font-style: italic;
}
@font-face {
font-family: ScalySansSmallCapsRemake;
src: url('../fonts/v3/Scaly Sans Caps.woff2');
font-weight: normal;
font-style: normal;
}
/* Headers */
@font-face {
font-family: MrEaves;
src: url('/assets/homebrewery/phb_style/fonts/Mr Eaves Small Caps.otf');
font-family: MrEavesRemake;
src: url('../fonts/v3/Mr Eaves Small Caps.woff2');
font-weight: normal;
font-style: normal;
}
/* Fancy Drop Cap */
@font-face {
font-family: SolberaImitationRemake; //Tweaked v3 version
src: url('../fonts/v3/Solbera Imitation Tweak.woff2');
font-weight: normal;
font-style: normal;
}