How to add fonts to TW running on NodeJS

43 views
Skip to first unread message

talha131

unread,
Sep 10, 2020, 1:43:39 PM9/10/20
to TiddlyWiki
I am running TW from NodeJS. I need to add some fonts that I use in some CSS classes only.

Currently, TW picks the fonts from the system, which is fine for now. My concern is that when I export the tiddlers to an HTML file using the save command or using the export tiddler menu item, then the font will not be part of it. The target system will most likely not have the required fonts.

How do I add fonts such that they are embedded in export? Should I create a `fonts` folder inside my tiddlers' folder?

What other way is there to add fonts to TW?

I have found this tutorial, but it is only for hosted fonts; I want to use fonts on HDD.

https://ibnishak.github.io/Tesseract/UI/index.html#How%20to%20use%20google%20fonts%20in%20TW5




TW Tones

unread,
Sep 10, 2020, 10:02:55 PM9/10/20
to TiddlyWiki
Talah,

Another way is to point to those fonts on the internet if they are hosted, usually on a content delivery network. Look for the way to include fonts using a link in a html page, and do the same in tiddlywiki using a raw tiddler tag.

Regards
Tony

Tejasvi S Tomar

unread,
Sep 11, 2020, 1:23:51 AM9/11/20
to TiddlyWiki
You may try to limit the choices within "web-safe fonts" https://web.mit.edu/jmorzins/www/fonts.html.
Reply all
Reply to author
Forward
0 new messages