Skip to main content
Participant
September 10, 2009
Answered

Installed Font-Family List

  • September 10, 2009
  • 1 reply
  • 2327 views

Hello all,

I have an application that requires me to do a simplified RichText Editor but I need to get the installed fonts on the server to show up on the clients drop down box.

The reason I'm not using a rich text editor is becuase I'm not actually configuring the text on the Textbox but a set of properties that will be applied to the text in the server, so I don't really need the resulting HTML but the properties that are being set with the controls.

Is there a way to accomplish this via ColdFusion or I have to list them manually.

If I have to list them manually, does anyone know where I can find a list?

Any other suggestion is welcome.

Thanks in advance,

Firebait

    This topic has been closed for replies.
    Correct answer Adam Cameron.

    There is a function getFonts() in the CFIDE.adminapi.runtime CFC.  This might help.

    --

    Adam

    1 reply

    Adam Cameron.Correct answer
    Inspiring
    September 10, 2009

    There is a function getFonts() in the CFIDE.adminapi.runtime CFC.  This might help.

    --

    Adam

    FirebaitAuthor
    Participant
    September 14, 2009

    thank you,

    That worked like a charm. For those who will like to see the code... here it goes:

    <cfscript>
       adminObj = createObject("component","cfide.adminapi.administrator");
       adminObj.login("password");
      
        admin = createObject("component","cfide.adminapi.runtime");
        fonts = admin.getfonts();
    </cfscript>

    <cfdump var="#fonts#" label="Fonts">

    Thank you.