Last active
September 17, 2023 20:51
-
-
Save rtanglao/0d0e9c5a9dbd7ffae7825acd5544140c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# convert pango:'a🤳Hello! 😀How are you?' example.png # Selfie emoji is Unicdode Hex 1F933 | |
require 'rmagick' | |
image = Magick::Image.read('pango:🤳The <b>bold</b> and <i>beautiful</i>').first | |
image.write('pango.png') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As of September 2023, brew doesn't install the pango delegate
roland@gMBP ~ % identify -version Version: ImageMagick 7.1.1-15 Q16-HDRI x86_64 21298 https://imagemagick.org Copyright: (C) 1999 ImageMagick Studio LLC License: https://imagemagick.org/script/license.php Features: Cipher DPC HDRI Modules OpenMP(5.0) Delegates (built-in): bzlib fontconfig freetype gslib heic jng jp2 jpeg jxl lcms lqr ltdl lzma openexr png ps raw tiff webp xml zlib Compiler: gcc (4.2)