Git Product home page Git Product logo

foundryvtt-forien-custom-fonts's Introduction

FoundryVTT - Forien's Custom Fonts

GitHub release (latest SemVer) GitHub Releases GitHub All Releases
[Compatibility]: FoundryVTT 0.6.0+
[Systems]: any
[Languages]: English, Polish

This module allows to load any font from Google Fonts to use in drawings in games played via Foundry Virtual Tabletop.

Installation

  1. Install Forien's Custom Fonts using manifest URL: https://raw.githubusercontent.com/Forien/foundryvtt-forien-custom-fonts/master/module.json
  2. While loaded in World, enable Forien's Custom Fonts module.

Usage

Go to module settings and set fonts you want to use. If all went well you should get notification.

Requires connection to Internet.

Journal Entries?

Yes, you can use loaded fonts in Journal Entries. You need to open the HTML source edit and add style attribute to either p or span element you want to change font to.

Example:

<p style="font-family: 'Grenze Gotisch', Signika, sans-serif;">

I do suggest always placing , Signika, sans-serif behind font family as a fallback just in case. If font family includes spaces, surround it with single quote.

Font loading issues:

I got no notification / Console shows 404 error

You probably mispelled some font and Google Fonts returns error. Check your definitions.

Drawings don't display new font:

Depending on various circumstances, new fonts might take some time to load. If new drawings don't display using new fonts (when set), try moving scenes, or use this script macro:

canvas.drawings.placeables.filter(d => d.data.type === 't').forEach(d => d.draw());

Screenshots

Future plans

  • Search fonts
  • Better UX and optimized loading
  • Downloading fonts for offline use?

You can always check current and up-to-date planned and requested features here

If you have any suggestion or idea on new contents, hit me up on Discord!

Translations

If you are interested in translating my module, simply make a new Pull Request with your changes, or contact me on Discord.

Contact

If you wish to contact me for any reason, reach me out on Discord using my tag: Forien#2130

Acknowledgments

  • Grenze Gotisch, Lobster and Indie Flower are fonts available on Google Fonts via Open Font License.
  • Thanks to KrishMero for helping with fonts not loading issue

Support

If you wish to support module development, please consider becoming Patron or donating through Paypal. Thanks!

License

Forien's Custom Fonts is a module for Foundry VTT by Forien and is licensed under a Creative Commons Attribution 4.0 International License.

This work is licensed under Foundry Virtual Tabletop EULA - Limited License Agreement for module development from May 29, 2020.

foundryvtt-forien-custom-fonts's People

Contributors

forien avatar shawndibble avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.