Hi sklpns

Hey Måns, thank you very much for your reply. 
> It worked, just needed a little styesheet tweaking. 
> So, to sum it up: embedding the special font Josefin Sans Std Light 
> example: 
>
> 1. Create a stylesheet tiddler for the font as described above. 
> ( http://fontfaceexample1.tiddlyspot.com/#StyleSheetJosefin ) 
>
> 2. Create a tiddler called [[StyleSheetFonts]]. In it include a link 
> to the font stylesheet tiddler created in step 1 
> ( http://fontfaceexample1.tiddlyspot.com/#StyleSheetFonts ) 
>
> 3. Put [[StyleSheetFonts]] at the top of the [[StyleSheet]] tiddler 
> ( http://fontfaceexample1.tiddlyspot.com/#StyleSheet ) 
>
> 4. Use the font in a tiddler like this: 
> @@font-family:'Josefin Sans Std Light';font-size:3em;Josefin Sans Std 
> Light@@ 
> ( http://fontfaceexample1.tiddlyspot.com/#font_test%3AJosefin ) 
>
> example: http://fontfaceexample1.tiddlyspot.com/ 
>
> So far so good, this has succesfully rendered the font Josefin Sans 
> Std Light 
> from the external url 
> http://fonts.tiddlyspace.com/JosefinSansStd-Light.ttf 
>
> This works equally well with all the special fonts used at 
> http://fonts.tiddlyspace.com/ 
>
> However, for some reason, I still can't get it to work with the font 
> Jd-clsr.ttf 
> from the external url http://jd.heliohost.org/Jd-clsr.ttf . 
> Could this be a font - specific issue, like the font-type (if you open 
> the font it says 
> '(HeliosSSi)(TrueType)' or the font family name (J.D.- Closer/LWTUA) 
> being different 
> than the font file name: Jd-clsr.ttf ? Yet J.D.- Closer/LWTUA.ttf is 
> not even a valid filename because of the special characters in it. Any 
> ideas? 


I have never played around with fonts like this before. My only reference 
was/is fonts.tiddlyspace.com.
Good point about collecting fonts in one stylesheet and embedding it into 
the StyleSheet!!! (I actually forgot that...)
I *think* that the .ttf refers to truetypefont - therefore (I *think*) 
you'll have to refer to it as format('truetype'); in your fontFaceStyleSheet 
- and I *think* that you can specify whatever familyname you wish, as long 
as you adhere to it when using the style-enclosure 
@@font-family:'SomeName';font-size:2.5em;SomeText@@ 
If the font isn't rendered as it should it *might* have something to do with 
"missing layers" (more font descriptors)???(I'm out where I can't swim here 
- please help if you know what I'm talking about - I actually don't...)

Have a look at StyleSheetLeagueGothic from fonts.tiddlyspace.com It 
appearently uses three different formats: 
ttf (truetype) 
woff (don't know that one..) and 
svg (scalable vector graphic) to render one font "League_Gothic.eot" (don't 
know *.eot ...) and the family is called: LeagueGothicRegular - used like 
this: @@font-family:'LeagueGothicRegular';font-size:3em;Some text@@

I think we need someone like @bengillies to step in and explain whats going 
on - I don't have a clue :-(
The tiddlyWeb group might be a better place to ask this question. @fonts is 
a tiddlyspace app..
I hope you'll find a solution !

Cheers Måns mårtensson


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to