mIRC Home    About    Download    Register    News    Help

Print Thread
Font Names #138572 03/01/06 07:40 AM
Joined: Dec 2005
Posts: 2
P
Pent Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
P
Joined: Dec 2005
Posts: 2
I'm trying to put together a dialog which will place all the font names into a combo box, problem is when I retrieve the font names from my machine they come back with their actual names instead of the refrence names which is what I'm trying to use,, below are a cople of the fonts and how their coming back.
comic sans -> comic
prestige elite oblique -> prestigo
perpetua->PER_____

below is the coding I'm trying to use, if some one has an answer to this problem PLEASE let me know.
Code:
  if (!$isfile($mircdir $+ def.fonts.ini)) { 
    var %fx = 1
    :loop
    var %fontx = $findfile(C:\windows\fonts,*.ttf,%fx)
    if (%fontx == $null) { goto end }
    echo -a %fontx | inc %fx | goto loop
    :end
  }  
 

Re: Font Names #138573 03/01/06 04:18 PM
Joined: Jan 2003
Posts: 1,063
D
Doqnach Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
you are retrieving the filenames of the fonts, not the font names in this manner...

how to get the font names, I don't know


If it ain't broken, don't fix it!