diff --git a/docs/_config.yml b/docs/_config.yml index 50429651..2e86a830 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -1,4 +1,4 @@ -title: Fabricate 0.10.2 +title: Fabricate 0.10.3 email: matt@misterpotts.uk description: >- End user documentation for the Foundry Virtual Tabletop (VTT) Module, "Fabricate". diff --git a/jest.config.ts b/jest.config.ts index a8732f0d..f0505406 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -1,9 +1,9 @@ module.exports = { preset: "ts-jest", testEnvironment: "node", - globals: { - "ts-jest": { + transform: { + '^.+\\.tsx?$': ['ts-jest', { isolatedModules: true - } + }] } }; \ No newline at end of file diff --git a/package.json b/package.json index 43803850..7a5b7d49 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fabricate", - "version": "0.10.2", + "version": "0.10.3", "description": "A system-agnostic, flexible crafting module for FoundryVT", "main": "index.js", "type": "module", diff --git a/src/public/assets/fonts/fabricate-regular.eot b/src/public/assets/fonts/fabricate-regular.eot new file mode 100644 index 00000000..21dfa360 Binary files /dev/null and b/src/public/assets/fonts/fabricate-regular.eot differ diff --git a/src/public/assets/fonts/fabricate-regular.svg b/src/public/assets/fonts/fabricate-regular.svg new file mode 100644 index 00000000..5d16950c --- /dev/null +++ b/src/public/assets/fonts/fabricate-regular.svg @@ -0,0 +1,11 @@ + + + +Generated by IcoMoon + + + + + + + \ No newline at end of file diff --git a/src/public/assets/fonts/fabricate-regular.ttf b/src/public/assets/fonts/fabricate-regular.ttf new file mode 100644 index 00000000..2347d1f1 Binary files /dev/null and b/src/public/assets/fonts/fabricate-regular.ttf differ diff --git a/src/public/assets/fonts/fabricate-regular.woff b/src/public/assets/fonts/fabricate-regular.woff new file mode 100644 index 00000000..5525d11d Binary files /dev/null and b/src/public/assets/fonts/fabricate-regular.woff differ diff --git a/src/scripts/module.ts b/src/scripts/module.ts index 71ee9024..dacf235e 100644 --- a/src/scripts/module.ts +++ b/src/scripts/module.ts @@ -135,7 +135,7 @@ Hooks.on("renderActorSheet", async (actorSheet: ActorSheet, html: any) => { label: "Crafting", tooltip: "Fabricate Crafting", class: "fab-actor-sheet-header-button", - icon: "fa-solid fa-screwdriver-wrench", + icon: "fas fabricate-icon-logo", onclick: async () => { await fabricateUserInterfaceAPI.renderActorCraftingApp({ targetActorId: actorSheet.actor.id diff --git a/src/styles/module.less b/src/styles/module.less index 926ba588..06cc5d0d 100644 --- a/src/styles/module.less +++ b/src/styles/module.less @@ -1284,4 +1284,35 @@ END COMMON STRUCTURAL STYLES flex: 0; justify-self: flex-end; } -} \ No newline at end of file +} + +@font-face { + font-family: 'fabricate-regular'; + src: url("modules/fabricate/assets/fonts/fabricate-regular.eot?uhkbys"); + src: url("modules/fabricate/assets/fonts/fabricate-regular.eot?uhkbys#iefix") format("embedded-opentype"), + url("modules/fabricate/assets/fonts/fabricate-regular.ttf?uhkbys") format("truetype"), + url("modules/fabricate/assets/fonts/fabricate-regular.woff?uhkbys") format("woff"), + url("modules/fabricate/assets/fonts/fabricate-regular.svg?uhkbys#fabricate-regular") format("svg"); + font-weight: normal; + font-style: normal; + font-display: block; +} + +[class^="fabricate-icon-"], [class*=" fabricate-icon-"] { + /* use !important to prevent issues with browser extensions that change fonts */ + font-family: "fabricate-regular" !important; + speak: never; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + + /* Better Font Rendering =========== */ + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.fabricate-icon-logo:before { + content: "\e900"; +}