0

In my php application I am using imagettftext() successfully with several font including OCR-A and others, but when I use wingding.ttf as the font I only get squares (character not found) as the result eg:imagettftext($image, 8, 0, 0, 10, 1, $font, 'ê'); to display the bold arrow down image.

Is Wingdings only for Windows OS?

Thanks.

Christoph Rackwitz
  • 11,317
  • 4
  • 27
  • 36
Cef
  • 661
  • 1
  • 6
  • 26
  • The `ê` symbol is `0xEA` in Unicode, which according to [this](https://www.alanwood.net/demos/wingdings.html) is "Wide-headed downwards heavy barb arrow" - can you confirm that's the symbol you want to render? – Chris Haas Jul 06 '23 at 21:45
  • That is correct. – Cef Jul 06 '23 at 21:48
  • Wingdings shouldn't be OS-specific, it is just a TTF file. You've copied that to the machine you are trying this on? – Chris Haas Jul 06 '23 at 21:52
  • Yes, in the same place as the arial, ocr-a, and other font files im using. – Cef Jul 06 '23 at 22:27
  • There are some questions already about dealing with characters outside of the ISO-8859-1 charset, https://stackoverflow.com/q/9458317/1427878 and https://stackoverflow.com/q/198007/1427878 for example - see if any of the suggestions made in there help. – CBroe Jul 07 '23 at 07:01

0 Answers0