chanchelkumar Posted December 31, 2009 Share Posted December 31, 2009 Hi all.. Am working with a language site.. I want to display the font with out downloading that font in to user's computer.. ie i want to show a special font which is in my server.. Is it possible in php. I tried with CSS .. but it need the font in user's machine.. most of the time user will not try to get the font download to his machine.. Is there any solution... Please help me.. Thanks in advance.. Link to comment https://forums.phpfreaks.com/topic/186778-embed-the-font/ Share on other sites More sharing options...
Mchl Posted December 31, 2009 Share Posted December 31, 2009 I want to display the font with out downloading that font in to user's computer.. So how is the user supposed to see it? Is there any solution... Apart from creating an image using your font and displaying it to the user, I can't see any. Link to comment https://forums.phpfreaks.com/topic/186778-embed-the-font/#findComment-986337 Share on other sites More sharing options...
The Little Guy Posted December 31, 2009 Share Posted December 31, 2009 You can do it with CSS but the user has to has a browser that has a CSS3 enabled browser with font support like "chrome 4.0.249.43" next you would do this (CSS): /* Place at the top of the css file */ @font-face { font-family:'arista'; src: url('http://www.nebala.com/display/arista.ttf'); /* Link to the font file */ } body{ font-family:'arista', 'verdana', 'times'; } The following link only works with browsers with font support Example (the green text at the top): http://www.nebala.com/search.php?q=how+many+pixels+are+in+a+light+year%3F Link to comment https://forums.phpfreaks.com/topic/186778-embed-the-font/#findComment-986338 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.