Help! GD, PHP, Fonts and Linux

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • darwin2kx
    New Member
    • Sep 2006
    • 3

    Help! GD, PHP, Fonts and Linux

    I am new to GD, and just got a proper webserver set up on FreeBSD. I've managed to get GD to do a lovely bar graph. Now, I want to put text on it, but can't figure out what fonts I have installed for use.

    How can I determine what fonts are available for use in my FreeBSD system?

    -----------------
    PHP 5.1.6
    FreeBSD 6.2
    Apache/1.3.37

    gd
    GD Support enabled
    GD Version bundled (2.0.28 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    FreeType Version 2.2.1
    T1Lib Support enabled
    JIS-mapped Japanese Font Support enabled
  • Motoma
    Recognized Expert Specialist
    • Jan 2007
    • 3236

    #2
    In order to use True Type fonts you can use the ImageTTFText() function and specify the path to a .ttf file.

    Comment

    Working...