You'll either have to find a bold version of the font , or create one somehow.

I just meant that there's no way of telling imagettftext (); to display text as bold. 🙂

    Many apologies Cockney,

    sadly, I've spent nearly an hour looking for a bold font, all to no avail. Is there an easy way to save a font as itself but bold, if that makes sense?

    Many thanks,

    ucbones

      Cockney,

      thanks, not quite right, but many thanks anyway... still looking for a way to turn a font into bold... anyone?

      ucbones

        17 years later

        I know this discussion is 17 years old! I just wanted to share a workaround. I was using my own handwriting as a font (created using Windows' FontMaker) which is very faint by default. To make it bold, I simply imagettftext twice, the first time a single pixel to the left and up from the second time.

          7 months later

          Hi @calfordmath - what a great thinking-out-the-box method - I tried and it works really well - thanks.
          Now, can you think up a way of making it italic. (I'm only joking!) :¬)

          redcarpet
          I know you're joking but...
          It gives slanted text, not proper italics (but then the above just gives a heavier weight, not a proper bold font), but...

          Write the text into a temporary image, apply a shear transform (imageaffine, maybe using imageaffinematrixget to build the transformation matrix) that slides the top of the image to the right, and copy the result into the destination image.

            Write a Reply...