Skip to content

Commit

Permalink
feat: new fonts are added in the system
Browse files Browse the repository at this point in the history
the fonts will be used to follow the Paranormal Order style
  • Loading branch information
SouOWendel committed Mar 23, 2024
1 parent a282732 commit 6c23ea1
Show file tree
Hide file tree
Showing 35 changed files with 74 additions and 1 deletion.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added media/fonts/warnock-pro/WarnockPro-LightDisp.otf
Binary file not shown.
Binary file added media/fonts/warnock-pro/WarnockPro-LightIt.otf
Binary file not shown.
Binary file not shown.
Binary file added media/fonts/warnock-pro/WarnockPro-LightSubh.otf
Binary file not shown.
Binary file added media/fonts/warnock-pro/WarnockPro-Regular.otf
Binary file not shown.
Binary file added media/fonts/warnock-pro/WarnockPro-Semibold.otf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added media/fonts/warnock-pro/WarnockPro-Subh.otf
Binary file not shown.
1 change: 1 addition & 0 deletions media/fonts/warnock-pro/sharefonts.net.txt
@@ -0,0 +1 @@
Free download fonts at http://sharefonts.net
Binary file added media/fonts/warnock-pro/warnockpro-semibold.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
69 changes: 69 additions & 0 deletions module/ordemparanormal_fvtt.mjs
Expand Up @@ -80,6 +80,9 @@ Hooks.once('init', async function () {
makeDefault: true,
});

// Configure Fonts
_configureFonts();

// Register System Settings in Other File
registerSystemSettings();

Expand Down Expand Up @@ -125,6 +128,72 @@ Hooks.once('ready', async function () {
displayMessages();
});

/**
* Configure additional system fonts.
*/
function _configureFonts() {
Object.assign(CONFIG.fontDefinitions, {
'Warnock Pro': {
editor: true,
fonts: [
{
urls: [
'systems/ordemparanormal/media/fonts/warnock-pro/WarnockPro-Regular.otf',
],
},
{
urls: [
'systems/ordemparanormal/media/fonts/warnock-pro/WarnockPro-Semibold.otf',
],
weight: 'semibold',
},
{
urls: [
'systems/ordemparanormal/media/fonts/warnock-pro/WarnockPro-SemiboldItSubh.otf',
],
style: 'italic',
},
{
urls: [
'systems/ordemparanormal/media/fonts/warnock-pro/WarnockPro-SemiboldIt.otf',
],
weight: 'bold',
style: 'italic',
},
],
},
'Optima Nova LT PRO': {
editor: true,
fonts: [
{
urls: [
'systems/ordemparanormal/media/fonts/optima-nova-lt-pro/OptimaNovaLTProRegular.otf',
],
},
{
urls: [
'systems/ordemparanormal/media/fonts/optima-nova-lt-pro/OptimaNovaLTProBold.otf',
],
weight: 'bold',
},
{
urls: [
'systems/ordemparanormal/media/fonts/optima-nova-lt-pro/OptimaNovaLTProItalic.otf',
],
style: 'italic',
},
{
urls: [
'systems/ordemparanormal/media/fonts/optima-nova-lt-pro/OptimaNovaLTProBoldItalic.otf',
],
weight: 'bold',
style: 'italic',
},
],
},
});
}

/* -------------------------------------------- */
/* Handlebars Helpers */
/* -------------------------------------------- */
Expand Down
5 changes: 4 additions & 1 deletion scss/utils/_typography.scss
@@ -1,2 +1,5 @@
$font-primary: 'Roboto', sans-serif;
$font-secondary: 'Roboto', sans-serif;
$font-secondary: 'Roboto', sans-serif;

$op-warnock: 'Warnock Pro', 'Roboto', sans-serif, 'Arial';
$op-optima: 'Optima Nova LT PRO', 'Roboto', sans-serif, 'Arial';

0 comments on commit 6c23ea1

Please sign in to comment.