Detect if Font is installed

Discussion in 'PHP' started by sandstorm140, Nov 21, 2008.

  1. #1
    Greetings,
    I need a script or ideas to check if a font is installed on the viewers machine. If true, display page.
    If false, display font download page.

    I'd like this preferably done in PHP if possible.

    I'v tried using WEFT and it just simple is worthless for what I need.

    Thanks a million.
     
    sandstorm140, Nov 21, 2008 IP
  2. eric90

    eric90 Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think there's no way of doing that right now. Although if you want to use your fonts on a user's page, you can check out a library called sIFR, it basically creates small flash texts using your font and replaces the corresponding text on your webpage.

    Alternatively, you can define several different comma separated fonts, so that if one is not available, it will attempt to find the next one down in the list.
     
    eric90, Nov 21, 2008 IP
  3. wmtips

    wmtips Well-Known Member

    Messages:
    601
    Likes Received:
    70
    Best Answers:
    1
    Trophy Points:
    150
    #3
    wmtips, Nov 21, 2008 IP
  4. Supah!

    Supah! Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    PHP isn't client side, so not possible :(.
     
    Supah!, Nov 22, 2008 IP
  5. joebert

    joebert Well-Known Member

    Messages:
    2,150
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    145
    #5
    joebert, Nov 22, 2008 IP
  6. sandstorm140

    sandstorm140 Peon

    Messages:
    80
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks all for advice :-D
     
    sandstorm140, Nov 23, 2008 IP