Like this? @font-face { {font-family: 'Raleway', sans-serif;} src: url('http://akos.hd.hu/font/Raleway-Regular.ttf') format('truetype'); body {font-family: 'Raleway', sans-serif;}
On 4/1/2016 6:31 PM, Siniy-Kit wrote: > you can put code with path to font file (.ttf for example) to your > stylesheet > > for example > > | > @font-face { > font-family: 'fontawesome'; > src: url('fonts/fontawesome-webfont.eot'); > src: url('fonts/fontawesome-webfont.woff') format('woff'), > url('fonts/fontawesome-webfont.ttf') format('truetype'), > url('fonts/fontawesome-webfont.svg') format('svg'); > } > > > > > > > > @font-face { > font-family: "PF Square Sans Pro Thin"; > src: url('fonts/a-light-webfont.eot'); > src: url('fonts/a-light-webfont.woff') format('woff'), > url('fonts/a-light-webfont.ttf') format('truetype'), > url('fonts/a-light-webfont.svg') format('svg'); > } > | > > > and then you can use "family" > > пятница, 1 апреля 2016 г., 18:24:10 UTC+3 пользователь Ákos Szederjei > написал: > > Hello everyone on this lovely list! > > I just discovered TiddlyWiki, and I am fooling around with the > different > style settings ,like: CSS, fonts, etc. > > I have a couple of questions, and I hope I am at the right place. > > Q1 > This code does exactly what is says in each line, when put into a > Tiddler in the most basic TiddlyWiki. > > None Raleway text<br> > @@font-family:'Raleway'; Raleway font test text <br> > //Raleway//@@ <br> > Test text should be //not// Raleway > > While I am happy it works, the questions remains why? From where does > the TW know where the Raleway (a Google font actually) font is? I gave > no url or anything. I am not expert on CSS and HTML so forgive me if > the > answer is obvious. > > > Q2 > I would like to use the above mentioned Raleway font for the whole > wiki. > > I made a tiddler names stylesheet, with the tag stylesheet and set the > type to text/css, > I put > body {font-family: 'Raleway', sans-serif;} > into it. > This one does not change all text to Raleway. What is wrong here? > > Thanks for the help in advance. > > Ákos > > -- > 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+unsubscr...@googlegroups.com > <mailto:tiddlywiki+unsubscr...@googlegroups.com>. > To post to this group, send email to tiddlywiki@googlegroups.com > <mailto:tiddlywiki@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/285da20d-f946-4ba4-befd-8c3fac6475a2%40googlegroups.com > <https://groups.google.com/d/msgid/tiddlywiki/285da20d-f946-4ba4-befd-8c3fac6475a2%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@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/56FEBFD5.6040702%40szederjei.eu. For more options, visit https://groups.google.com/d/optout.