Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Font Detection


Message #1 by =?iso-8859-1?q?Himanshu=20Chaudhari?= <himanshuchaudhari@y...> on Thu, 11 Apr 2002 13:43:24 +0100 (BST)
--0-616601473-1018529004=:59095
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit


I am making a application in which user can type in regional language.For that he needs a Font.

how can I detect that the particular font is installed in the user's system or not so that i can nake my page according to that.

 

                                                                               Himanshu


---------------------------------
Download   Yahoo! Score Tracker for live cricket scores on your desktop
Message #2 by "tom carr" <tomcarr1@y...> on Tue, 16 Apr 2002 21:07:18
I had this problem.  I don't think there is any way to do it from ASP.  I 
asked in lots of places.  I wrote a VB ocx with the following code, which 
let me do it.  If Fname is not on the system you get sent to the error 
handler.  You might be able to get the same principle to work in ASP, but 
this ended up being easier for me.  

Private Function TestOneFont(Fname)

On Error GoTo ErrorHandler   ' Enable error-handling routine.
lblInfo.FontName = Fname
TestOneFont = ""

Exit Function
ErrorHandler:
TestOneFont = Fname
        
End Function





> --0-616601473-1018529004=:59095
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit


I am making a application in which user can type in regional language.For 
that he needs a Font.

how can I detect that the particular font is installed in the user's 
system or not so that i can nake my page according to that.

 

                                                                           
    Himanshu


---------------------------------
Download   Yahoo! Score Tracker for live cricket scores on your desktop

  Return to Index