javascript thread: Reading Client Machine Font Names As Opposed to Font File Names
I'm wondering if anyone out there can help me read Font TypeFace Name
using any technology. Presently am able to read the file names themselves
using the code below: Thanks to Elliott M O'Hara
<script language="javascript">
function ShowFolderFileList(folderspec)
{
var fso, f, f1, fc, s, t;
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.GetFolder(folderspec);
fc = new Enumerator(f.files);
s = "";
for (; !fc.atEnd(); fc.moveNext())
{
t = fc.item();
t = fso.GetFileName(fc.item());
t = t.substr(0,t.length)
s += t;
s += "<br>";
}
fc.moveFirst()
return(s);
}
document.write(ShowFolderFileList("C:\\Windows\\Fonts"))
</script>
However this will not work for me since what I need is to apply it to my
document after selecting the FontFace from a ListBox.
Thanks In Advance
Paul