Git Product home page Git Product logo

foundryvtt-forien-custom-fonts's People

Contributors

forien avatar shawndibble avatar

Stargazers

 avatar  avatar

Watchers

 avatar

foundryvtt-forien-custom-fonts's Issues

[BUG] Fonts do not render properly after reloading the page until the scene with text drawings is visited twice or the "Drawing Tools" button is clicked.

Module Version: v0.1.0

Describe the bug
Fonts do not render properly after reloading the page until the scene with text drawings is visited twice or the "Drawing Tools" button is clicked.

To Reproduce
Steps to reproduce the behavior:

  1. Add some text drawings on a few scenes, set their fonts to the custom google fonts.
  2. Reload the page in your browser (tested in Electron, Chrome and Firefox)
  3. The fonts on the landing page look like Signika.
  4. Switch to other Scene. The fonts on that scene also look like Signika.
  5. Switch back to Scene 1. The fonts are now properly rendered as your custom google fonts.
  6. Switch back to Scene 2. The fonts are now properly rendered as your custom google fonts.
  7. Switch back to Scene 3. The fonts look like Signika.
  8. Press "Drawing Tools" button. The fonts are now properly rendered as your custom google fonts.

Expected behavior
I kinda hoped it is possible to draw fonts properly for each scene whenever it is rendered. It would be weird to tell your players to switch scenes back and forth to render the proper fonts.

Browser:
Electron, Chrome, Firefox

Foundry Version:
0.6.5

Game System:
dnd5e 0.93

Additional context

Allow use/import of local fonts

I would love to be able to add some of my custom (paid) fonts somewhere in my Data folder so that I can use them for drawings and such. Seems like it's right up this module's alley.

license terms

please include license terms
(i.e. did you create these fonts, are the public use, can I use them in a video?)

Suggestion: Allow the requesting of font-weights, font-variations like italics etc.

Currently when requesting a font name that has been entered, it will only request the regular 400 weight version of the font from Google-Fonts. Which means if you try to use things like semi-bold or thin weights, they won't be loaded and shown properly.

It would be nice if there was a way of requesting the various weights etc. from Google-Fonts, so that things like proper semi-bold, thin, italic variations etc. of fonts can be used. From a quick check, it's done by appending the variations required after the font-name on the request, something like: family=Roboto:wght@100;300;400;500;700. Although it gets a bit more messy if you're wanting to request the italic variations as well.

Although my suggestion would likely mean a bit of a rework to the settings UI section to actually be usable, due to it becoming a bit of a mess trying to fit everything into a single text-box. Rather than having something like a table of fonts with a second column for the variations wanted. So it'd likely to be a pain to implement without some annoying extra stuff...

Thanks for the module either way, it's very handy! :)

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.