Installing Fonts

Discussion in 'Linux VPS/Dedicated - cPanel' started by ciderhelm, Sep 6, 2007.

  1. ciderhelm

    ciderhelm New Member

    This may not belong here. I'm having difficulty finding a way to install a new font to the server, and a Google search didn't help. I have a script which needs to render to an image, and I'd strongly prefer to start using a different font in the PHP code, but am not sure how to go about installing one.

    Can this be done via cPanel?
  2. khiltd

    khiltd New Member

    You simply upload the font to the server and specify its location in the code. Assuming you're using ImageTTFText, you'd pass it in the second parameter.
  3. ciderhelm

    ciderhelm New Member

    Wait, it's that easy?


  4. khiltd

    khiltd New Member

    Pretty much. Unless they're freeware fonts, you should place them somewhere outside your document root so you aren't inadvertently accused of distributing illegal copies of licensed software.

Share This Page