xoops forums

hal9000

Just popping in
Posted on: 2004/10/11 15:37
hal9000
hal9000 (Show more)
Just popping in
Posts: 60
Since: 2003/8/6 9
#1

using a custom ttf in a xoops theme

HAs anyone any idea how to do this as i want to add a custom small pixely type of font to a theme as the main theme.

im not to worried about macs as i will just substitute a mac font but i really want to use this font for the main text on the site.
Can this be done in css and how would i do it.?
just include the font in the same folder as the theme?

cheers

[this type of font btw]
Posted on: 2004/10/11 15:49
ackbarr
ackbarr (Show more)
Posts: 1449
Since: 2002/10/2
#2

Re: using a custom ttf in a xoops theme

if you can guarantee that the font already is installed on the client's machine you can use the font-family css rule to set the font. ATM there is no standard for embedding fonts in a web page. IE (WIN) and NN 4 both have mechanisms for doing so, but Mozilla does not, and I believe Opera does not either.

Embedded Fonts FAQ (old FAQ)

If you have rights to re-distribute the font, you can always place a block on your site, urging users to download the font in order to see the site properly.

* Update - it looks like that font is freeware - so you should be able to provide a download link to your users.

hal9000

Just popping in
Posted on: 2004/10/11 15:56
hal9000
hal9000 (Show more)
Just popping in
Posts: 60
Since: 2003/8/6 9
#3

Re: using a custom ttf in a xoops theme

i had seen something before where you convert a ttf into something else but it all looked long winded
i just wondered if somebody else has had any suscess.
cheers
Posted on: 2004/10/11 16:08
ackbarr
ackbarr (Show more)
Posts: 1449
Since: 2002/10/2
#4

Re: using a custom ttf in a xoops theme

I believe you are referring to the Microsoft Web Embedding Fonts Tool:
http://www.microsoft.com/typography/web/embedding/weft/default.htm

This tool is discussed in the Embedded Fonts FAQ I listed in my first reply.

hal9000

Just popping in
Posted on: 2004/10/11 16:12
hal9000
hal9000 (Show more)
Just popping in
Posts: 60
Since: 2003/8/6 9
#5

Re:using a custom ttf in a xoops theme

that'll be the one then :)
doh!
i'll check it when i get home from work... tah muchly
h9k