Use any font on offline web page

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Jun 2009
Posts: 28
Reputation: Pleasant Day is an unknown quantity at this point 
Solved Threads: 0
Pleasant Day Pleasant Day is offline Offline
Light Poster

Use any font on offline web page

 
0
  #1
Oct 8th, 2009
My web site will be on their hard disk, but the font I use will not be added to their
C:\WINDOWS\FONTS
But I want them to be able to see my non default font, Though I can put the font in the directory of the web page.

Can this be done, can it be made to work. Can we have the user have a web site used offline and they can have fonts in that web page working, but they don't have to download the font and added it to their fonts directory, in my case its C:\WINDOWS\FONTS.
I want them to be able to just open my web site on their hard drive and not have to manually install fonts to get the site to display the fonts.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 483
Reputation: DangerDev has a spectacular aura about DangerDev has a spectacular aura about 
Solved Threads: 59
DangerDev's Avatar
DangerDev DangerDev is offline Offline
Posting Pro in Training
 
1
  #2
Oct 9th, 2009
Freedom in the Mind, Faith in the words.. Pride in our Souls...
Indian Developer
http://falaque.wordpress.com/
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 28
Reputation: Pleasant Day is an unknown quantity at this point 
Solved Threads: 0
Pleasant Day Pleasant Day is offline Offline
Light Poster
 
0
  #3
Oct 9th, 2009
it says do this

JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <STYLE TYPE="text/css">
  2. <--!
  3. @font-face {
  4. font-family: Arial;
  5. font-style: normal;
  6. font-weight: normal;
  7. src:url(http://www.SiteAddress.htm/EOTfileName.eot);
  8. }
  9. -->
  10. </STYLE>

Ill add my own font

DicotMedium
though when its not in its windows fonts directory it changes its name to this
DICOTME_.TTF

anyway Ill put its name

JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <STYLE TYPE="text/css">
  2. <--!
  3. @font-face {
  4. font-family: DicotMedium;
  5. font-style: normal;
  6. font-weight: normal;
  7. src:url(fonts);
  8. }
  9. -->
  10. </STYLE>

I made a folder called it fonts and put it the same directory as the rest of the web page.

End result, it doesnt work.
Reply With Quote Quick reply to this message  
Reply

Message:




Views: 341 | Replies: 2
Thread Tools Search this Thread



Tag cloud for JavaScript / DHTML / AJAX
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC