mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Is there a way to check if a font exists?
I was trying to use $width, but it didn't work.


New username: hixxy
Joined: Dec 2003
Posts: 219
F
Fjord artisan
Offline
Fjord artisan
F
Joined: Dec 2003
Posts: 219
Hi!

Why not checking in C:\[WinDir]\Fonts

or in the Registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\Current Version\Fonts (valid for Windows 2000)

Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
I thought of that, but the font that you can pass to /font doesn't always have the same name as the file in c:\windows\fonts.


New username: hixxy
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
- $isFontInstalled()
- FontExists function of Kte.dll (faster and more reliable)

Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Ah yes, never thought of it that way, i don't need it now though, thanks anyway smile


New username: hixxy

Link Copied to Clipboard