Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / PHP / General PHP Topics / July 2008



Tip: Looking for answers? Try searching our database.

Embed Font

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Php Developer - 04 Jul 2008 11:06 GMT
Hi, please help me i want to embed font in a webpage.I like it to show
in IE as well as in FF..Is there any technique for that.Thanks a lot.
Joe Scylla - 04 Jul 2008 11:52 GMT
> Hi, please help me i want to embed font in a webpage.I like it to show
> in IE as well as in FF..Is there any technique for that.Thanks a lot.

sIFR
http://www.mikeindustries.com/blog/sifr/

Joe
Michael Fesser - 04 Jul 2008 12:27 GMT
.oO(Php Developer)

>Hi, please help me i want to embed font in a webpage.I like it to show
>in IE as well as in FF..Is there any technique for that.Thanks a lot.

Not a PHP issue. HTML doesn't allow to embed fonts. You have to live
with what is available on your visitors systems. If you need a special
font for a heading for example, you have to use an image.

Micha
Radek N. - 04 Jul 2008 14:07 GMT
Michael Fesser pisze:
> .oO(Php Developer)
>
[quoted text clipped - 4 lines]
> with what is available on your visitors systems. If you need a special
> font for a heading for example, you have to use an image.

1. PHP: possible solution -> http://pl2.php.net/imagettftext
2. Flash + JS: sIFR
2. CSS: You have to wait for web fonts
http://www.alistapart.com/articles/cssatten :)

Signature

Radek N.

wedphp@gmail.com - 07 Jul 2008 13:17 GMT
> Michael Fesser pisze:
>
[quoted text clipped - 13 lines]
> --
> Radek N.

http://www.alistapart.com/articles/cssatten
I try to make that work in ie and ff but @font-face declaration is not
working for ttf fonts as said by tutorial.

http://asitusi.net
AnrDaemon - 05 Jul 2008 17:43 GMT
Greetings, Michael Fesser.
In reply to Your message dated Friday, July 4, 2008, 15:27:51,

> .oO(Php Developer)

>>Hi, please help me i want to embed font in a webpage.I like it to show
>>in IE as well as in FF..Is there any technique for that.Thanks a lot.

> Not a PHP issue. HTML doesn't allow to embed fonts. You have to live
> with what is available on your visitors systems. If you need a special
> font for a heading for example, you have to use an image.

Not "embed" but you can use CSS to allow visitors to download fonts from web,
if their browser support @font-face declaration.

Signature

Sincerely Yours, AnrDaemon <anrdaemon@freemail.ru>

Michael Fesser - 05 Jul 2008 19:54 GMT
.oO(AnrDaemon)

>Greetings, Michael Fesser.
>In reply to Your message dated Friday, July 4, 2008, 15:27:51,
[quoted text clipped - 5 lines]
>Not "embed" but you can use CSS to allow visitors to download fonts from web,
>if their browser support @font-face declaration.

This rule was removed from CSS 2.1 years ago, but might come back with
CSS 3. However, the main problem with fonts is the same as with images
downloaded from other sites - you are usually not allowed to distribute
them on your own site. Doing that would violate the copyright.

Micha
wedphp@gmail.com - 07 Jul 2008 13:18 GMT
> .oO(AnrDaemon)
>
[quoted text clipped - 14 lines]
>
> Micha

I try to use this concept http://www.alistapart.com/articles/cssatten
but it is not working well @font-face declaration or @font-face ..Help
if any one can..

http://asitusi.net
wedphp@gmail.com - 07 Jul 2008 13:16 GMT
> Greetings, Michael Fesser.
> In reply to Your message dated Friday, July 4, 2008, 15:27:51,
[quoted text clipped - 11 lines]
> --
> Sincerely Yours, AnrDaemon <anrdae...@freemail.ru>

I try to make that work in ie and ff but @font-face declaration is not
working for ttf fonts as said by tutorial.
AnrDaemon - 07 Jul 2008 23:59 GMT
Greetings, wedphp@gmail.com.
In reply to Your message dated Monday, July 7, 2008, 16:16:19,

>> >>Hi, please help me i want to embed font in a webpage.I like it to show
>> >>in IE as well as in FF..Is there any technique for that.Thanks a lot.
[quoted text clipped - 4 lines]
>> Not "embed" but you can use CSS to allow visitors to download fonts from web,
>> if their browser support @font-face declaration.

> I try to make that work in ie and ff but @font-face declaration is not
> working for ttf fonts as said by tutorial.

I didn't said it will "work well" or even "work"...
Try this.

@font-face {
 font-family: "Exact Font Name";
/* i.e.
 font-family: "DejaVu LGC Sans";
*/
 src: url('relative or absolute URL to font file');
/* i.e.
 src: url('/static/fonts/DejaVuLGCSans.ttf');
}

DejaVu fonts available at http://dejavu.sourceforge.net/wiki/index.php/Download
(Not very good for my taste, but good enough and free of charge)

Signature

Sincerely Yours, AnrDaemon <anrdaemon@freemail.ru>

The Natural Philosopher - 04 Jul 2008 13:03 GMT
> Hi, please help me i want to embed font in a webpage.I like it to show
> in IE as well as in FF..Is there any technique for that.Thanks a lot.
Sure. Make a gif image.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.