SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot shoorace's Avatar
    Join Date
    Jun 2005
    Location
    Florida
    Posts
    142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Detect font is available in client side

    Dear all,
    1) I need the feature to detect whether a required font is installed in the client system. If the font is not available then I need popup notification for this.

    2) Moreover I also need to detect whether required unicode is available too??

    3) I also need to know how to make javascript works for unicode, like do popup in Japanese language.

    Help me out asap.......

  2. #2
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,423
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    You can't tell what font's are installed on a user's computer. That would require access to the user's computer which JavaScript does not offer.

  3. #3
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As John (stymiee) said, this is impossible. The best you can do with fonts is to declare which fonts to use in a stylesheet.

    As for unicode, saving your file as UTF-8 (or another appropriate content type) and making sure it matches the HTTP headers being sent by the server are the best you can do, I'm afraid.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •