Forums / Setup & design / How To Add Not "Web Safe" fonts

How To Add Not "Web Safe" fonts

Author Message

Fátima Chapri

Sunday 30 November 2008 8:37:56 am

Is there any way to add some custom font on website, without using images, flash or some other graphics. I want to use a TrueType Font that is not web safe for my content, but I didn't find the right way how to add that font on ezPublish and how to include that font with css into html, so is there any chace to do this without graphics?

André R.

Sunday 30 November 2008 9:50:21 am

There is a way, but it is somewhat under construction:
http://en.wikipedia.org/wiki/Dynamic_fonts

So its possible if you only target mac + iphone + google chrome users or alternatively ie only.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Fátima Chapri

Sunday 30 November 2008 1:10:08 pm

I found the "text to image" ez function. It transforms the text into an image. But unfortunately it only works when we write the text on the templates.
Is there any way to use this function if the text we want to transform to an image is in the administration interface?

Igor Vrdoljak

Sunday 30 November 2008 10:42:22 pm

Hi

You can allways try using sIFR:

http://wiki.novemberborn.net/sifr

It uses JavaScript and Flash, but downgrades mercifuly for Flash-disabled browsers.

http://www.netgen.hr/eng
http://twitter.com/ivrdoljak

Gaetano Giunta

Monday 01 December 2008 2:45:33 am

"Is there any way to use this function if the text we want to transform to an image is in the administration interface? "

Sure enough - you will have to look in the php code of eZ Publish to find out which classes implement this functionality.
Otoh, the admin interface is also built via templates, so if what you need is not to programatically create new images with text but only displaying it in the admin interface, you can override some admin templates.

Principal Consultant International Business
Member of the Community Project Board

Forex System Profi

Monday 01 December 2008 7:16:04 am

>> It uses JavaScript and Flash, but downgrades mercifuly for Flash-disabled browsers.

Wow, amazing! Thank you for link.

Metatrader Expert ( http://iticsoftware.com ), Scalping Forex ( http://iticsoftware.com/scalping-forex.php ), Forex Trading Systems ( http://shop.profxtools.com )

Fátima Chapri

Tuesday 02 December 2008 12:55:23 pm

Hi,

Thanks a lot for your help people.

Gaetano, I will try to do what you said.