Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Commit

Permalink
New parchment method. Updated README. Font name fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
AmazingVanish committed Feb 7, 2022
1 parent f80b25f commit ec686b4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ _The new toolbar with added options_
![mix-n-match](https://raw.github.com/AmazingVanish/apsj/main/media/apsj-mix-n-match.webp)
_Screenshot of mixing and matching templates for a unique experience_

## Known Issues

- Font Awesome icons do not display in Edit Mode

## License

Copyright © 2022 DreamScape Visionery, LLC. All rights reserved.
Expand Down
19 changes: 10 additions & 9 deletions scripts/apsj.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,16 @@ Hooks.on('init', () => {

Hooks.on('ready', () => {
if (game.settings.get('apsj', 'apsjEnableParchment')) {
var css =
'.journal-sheet form.editable { background-image: url(modules/apsj/assets/parchment.webp); }',
head = document.head,
style = document.createElement('style');

head.appendChild(style);

style.type = 'text/css';
style.appendChild(document.createTextNode(css));
let innerHTML = '';
let style = document.createElement('style');
style.id = 'apsj-changes';
innerHTML += `
.journal-sheet form.editable { background-image: url(modules/apsj/assets/parchment.webp); }
`;
style.innerHTML = innerHTML;
if (innerHTML != '') {
document.querySelector('head').appendChild(style);
}
}

CONFIG.TinyMCE.style_formats.push({
Expand Down
8 changes: 4 additions & 4 deletions styles/apsj.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,28 @@

@font-face {
font-family: 'BookInsanity';
src: url('../fonts/Bookinsanity/BookInsanity.otf') format('opentype');
src: url('../fonts/BookInsanity/BookInsanity.otf') format('opentype');
font-weight: 400;
font-style: normal;
}

@font-face {
font-family: 'BookInsanity';
src: url('../fonts/Bookinsanity/BookInsanityBold.otf') format('opentype');
src: url('../fonts/BookInsanity/BookInsanityBold.otf') format('opentype');
font-weight: 700;
font-style: normal;
}

@font-face {
font-family: 'BookInsanity';
src: url('../fonts/Bookinsanity/BookInsanityItalic.otf') format('opentype');
src: url('../fonts/BookInsanity/BookInsanityItalic.otf') format('opentype');
font-weight: 400;
font-style: italic;
}

@font-face {
font-family: 'BookInsanity';
src: url('../fonts/Bookinsanity/BookInsanityBoldItalic.otf')
src: url('../fonts/BookInsanity/BookInsanityBoldItalic.otf')
format('opentype');
font-weight: 700;
font-style: italic;
Expand Down

0 comments on commit ec686b4

Please sign in to comment.