List Available TrueType Fonts on Server

Discussion in 'ASP.NET / ASP.NET Core' started by bobster, Dec 1, 2003.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Is there a way I can get a list of fonts that are installed on the web server?

    I am using ABCpdf and one of the functions that it supports is the ability to embed any TrueType font that is installed on the server.

    TIA!




    </font id="Arial">
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    Hmmm... i'll check w/ the SA regarding this.

    Our servers are standard windows 2003 installation, we didn't add any additional fonts.

    quote:Originally posted by bobster

    Is there a way I can get a list of fonts that are installed on the web server?

    I am using ABCpdf and one of the functions that it supports is the ability to embed any TrueType font that is installed on the server.

    TIA!




    </font id="Arial">
    </blockquote id="quote"></font id="quote">
     
  3. You can list the fonts available by using the following code.


    InstalledFontCollection insFont = new InstalledFontCollection();


    FontFamily [] families = insFont.Families;


    foreach (FontFamily family in families)


    {


    Response.Write (family.GetName(0) + "");


    }
    List of fonts available are
    Arial
    Arial Black
    Comic Sans MS
    Courier New
    Estrangelo Edessa
    Franklin Gothic Medium
    Gautami
    Georgia
    Impact
    Latha
    Lucida Console
    Lucida Sans Unicode
    Mangal
    Marlett
    Microsoft Sans Serif
    MV Boli
    Palatino Linotype
    Raavi
    Shruti
    Sylfaen
    Symbol
    Tahoma
    Times New Roman
    Trebuchet MS
    Tunga
    Verdana
    Webdings
    Wingdings
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page