944,202 Members | Top Members by Rank

Ad:
Oct 8th, 2009
0

Use any font on offline web page

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Pleasant Day is offline Offline
54 posts
since Jun 2009
Oct 9th, 2009
1
Re: Use any font on offline web page
Reputation Points: 165
Solved Threads: 59
Posting Pro in Training
DangerDev is offline Offline
485 posts
since Jan 2008
Oct 9th, 2009
0
Re: Use any font on offline web page
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.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Pleasant Day is offline Offline
54 posts
since Jun 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: alert box color
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: Retrieving the cursor position in a textarea





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC