[tw5] Re: [TW5] How to embed a font (using @font-face and data-url)

2023-02-27 Thread Jeremy Ruston
Hi Lin OneTwo, It isn't necessary to do the base64 encoding manually. Have a look at the font embedded in the "Startlight" theme that is accessed via the `<>` macro: https://github.com/Jermolene/TiddlyWiki5/blob/master/themes/tiddlywiki/starlight/styles.tid Best wishes Jeremy On Monday,

[tw5] Re: [TW5] How to embed a font (using @font-face and data-url)

2023-02-27 Thread Lin Onetwo
I encode it manually instead: 1. download the font file, for example, `FiraCode-VF.woff2` 2. `base64 '/Users/linonetwo/Downloads/Fira_Code_v6.2/woff2/FiraCode-VF.woff2' -o '/Users/linonetwo/Downloads/Fira_Code_v6.2/woff2/FiraCode-VF.woff2.base64.txt'` as said in