Imagettftext() not working

Discussion in 'PHP' started by globalcashsite, Dec 24, 2009.

  1. #1
    Guys

    I am trying to create one image with Arial font with bigger size but fail. My code works fine with Imagestring() but when I use Imagettftext() it does not work. Here is code:

    Any help, I also mentioned full url of font file and uploaded it from Windows folder.

    GCS
     
    globalcashsite, Dec 24, 2009 IP
  2. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #2
    change this
    error_reporting(0);
    to
    error_reporting(E_ALL);
    and paste the errors you see
     
    JAY6390, Dec 24, 2009 IP
  3. mastermunj

    mastermunj Well-Known Member

    Messages:
    687
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Please check whether php is compiled using freetype options, or you have freetype fonts enabled..
     
    mastermunj, Dec 24, 2009 IP
  4. Gray Fox

    Gray Fox Well-Known Member

    Messages:
    196
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    130
    #4
    I'm not sure about this, but have you tried putting the font location relative to your PHP file/site root?
     
    Gray Fox, Dec 26, 2009 IP