Add Text and Emojis to Images in PHP

Text can be easily added to an image by the Image Processing and GD and Imagick functions. To add an emoji, you need one TTF file which contains the font style that you want which includes the emojis. 

Using this method only the Imagick function will add the emoji correctly to the image. The Image Processing and GD method does not work. The images below were produced using the same TTF and input.

Image Processing with GD


How Do I Add Emojis to a TTF File?