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
  }