ערכתי לאחרונה בתאריך 24.03.09 בשעה 23:47 בברכה, ronen333
לא ניסתי לעשות משהו כזה...
אבל גוגל מצא מלא תשובות =]
http://www.google.com/search?hl=en&rls=com.microsoft%3Aen-us%3AIE-SearchBox&rlz=1I7ADBF&q=check+with+js+if+font+existהנה תוכנית בJS שבודקת אם הפונט קיים-
http://www.lalit.org/wordpress/wp-content/uploads/2008/05/fontdetect.js
תוכנית מאוד חכמה אם תשאל אותי... איך זה עובד?
This code works on the simple principle that each character appears differently in different fonts. So different fonts will take different width and height for the same string of characters of same font-size.We try to create a string with a specified font-face. If the font-face is not available, it takes up the font-face of the parent element. We then compare the width of the string with the specified font-face and width of the string with the font-face of the parent element, if they are different, then the font exists, otherwise not.
The string which we will use to generate the widths can be anything. But I guess we use ‘m’ or ‘w’ because these two characters take up the maximum width. And we use a trailing ‘l’ so that the same width fonts-faces can get separated based on the width of l character.

