--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/HynvAJZ21_8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.
html span.tc-title{
color: red;
font-family: "Poiret One", "Impact";
}
For the record I tried to add the fonts without linking but it didn't work. @font-face {
font-family: "Arvo";
font-style: normal;
font-weight: 400;
src: local("Arvo"), url(<<datauri "$:/themes/tiddlywiki/starlight/arvo.woff">>) format("woff");
}
html span.tc-title{
color: red;
font-family: "Arvo", "Impact";
}
You just create a new tiddler, with the type Stylesheet or PlainText, tag it with $:/tags/Stylesheet and paste the code google provides for fonts. Save the wiki and reload (otherwise it won't work) and voila.
Go to https://www.fontsquirrel.com/tools/webfont-generator and upload the fonts you want to use.
Select the expert option, check/uncheck w/ever you want but make sure that the 'CSS' field has 'Base64' ticked, agree to the terms and convert.
Create a new stylesheet in your wiki (as per the steps above) and paste the code of the stylesheet.css file included in the download
You may want to edit the name of the font, style and weight to suit your purposes, as the converter just uses the name of the font file and defaults to normal style and weight. The fields are already included in the code pasted, you just need to change the values.
Well, after posting that I discovered two methods that work.The first one uses the @import declaration that Google provides (you could also use the 'true' css by going to the link there), with the disadvantage that it depends on an outside website, kind of against TW5 philosophy.You just create a new tiddler, with the type Stylesheet or PlainText, tag it with $:/tags/Stylesheet and paste the code google provides for fonts. Save the wiki and reload (otherwise it won't work) and voila.The second one uses Base64 encoding. With the disadvantage that if you use too many fonts the size of the wiki will increase a lot.Go to https://www.fontsquirrel.com/tools/webfont-generator and upload the fonts you want to use.Select the expert option, check/uncheck w/ever you want but make sure that the 'CSS' field has 'Base64' ticked, agree to the terms and convert.Create a new stylesheet in your wiki (as per the steps above) and paste the code of the stylesheet.css file included in the download
On Friday, 20 May 2016 21:06:51 UTC-5, Birthe C wrote:Hi Miguel Bartelsman,
I first saw how to do it enjoying this charming Tiddlywiki http://asciifish.tiddlyspot.com/ by Alex Hough I think. It uses lots of Google fonts.
Birthe
On Saturday, May 21, 2016 at 2:05:20 AM UTC+2, Miguel Bartelsman wrote:I'm sorry for reviving this, but this solution only works as long as the tiddler that contains the font link is open.
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/b006302f-9a0c-49bb-a124-dcbd823a15ea%40googlegroups.com.