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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 00:30:32
Script start
Timing: Jan 19 2025 00:30:32
Module start 'layout'
Timing: Jan 19 2025 00:30:32
Module start 'content'
Timing: Jan 19 2025 00:30:33
Module end 'content'
Timing: Jan 19 2025 00:30:33
Script end

Main resources:

Total runtime1.3474 sec
Peak memory usage4,096.0000 KB
Database Queries75

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0082 587.9141152.6250
Module start 'layout' 0.00820.0041 740.539139.4453
Module start 'content' 0.01231.3336 779.9844697.2734
Module end 'content' 1.34590.0014 1,477.257816.1641
Script end 1.3473  1,493.4219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2474160.0002
Check MTime0.00150.1111160.0001
Mysql Total
Database connection0.00130.094310.0013
Mysqli_queries1.278494.8823750.0170
Looping result0.00110.0830730.0000
Template Total1.309797.220.6548
Template load0.00210.155920.0010
Template processing1.307697.046020.6538
Template load and register function0.00020.011210.0002
states
state_id_array0.00150.107810.0015
state_identifier_array0.00140.102120.0007
Override
Cache load0.00180.1340300.0001
Sytem overhead
Fetch class attribute can translate value0.00080.061750.0002
Fetch class attribute name0.00150.1095100.0001
XML
Image XML parsing0.00180.135250.0004
class_abstraction
Instantiating content class attribute0.00000.0015100.0000
General
dbfile0.00140.1009290.0000
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs