After some deep exploring of the inner guts of your TiddlyWiki, I found $:/.giffmex/fonts
, which contains:
<link href="https://fonts.googleapis.com/css?family=Fira+Sans:200, 350,350i,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap" rel="stylesheet">
This tiddler is tagged with $:/tags/RawMarkup
, which means that the “Fira Sans”, “Open Sans” and “Source San Pro” font definitions are being loaded at startup in the <head>...</head>
section of your main Tiddlywiki file.
However, the TiddlyTools/PrintTiddler window is opened via the TWCore’s tm-new-window
message which apparently outputs a completely separate HTML definition that does NOT include the content tagged with $:/tags/RawMarkup
. Thus, your custom loaded fonts are not available to be rendered in the PrintTiddler window and the browser falls back to using the default “Arial” font.
I would presume that the TWCore static export process also does not include the $:/tags/RawMarkup
content resulting in the same font rendering issue. Even so, I don’t see how having TiddlyTools/PrintTiddler installed in your TiddlyWiki could have ANY effect on the static export output.
I’ve not done much with custom font definitions in TiddlyWiki, but I recall that some others have done some work that incorporates TTF (TrueTypeFonts) or WOFF (Web Open Font Format) definitions directly in the TiddlyWiki file so that they are not being loaded in the HTML <head>
section. Perhaps this would produce the results you want.
-e