Tadwork/experimental-browser

Exercise: Chapter 2 - Emoji

Opened this issue Ā· 0 comments

Emoji: Add support for emoji šŸ˜€ to our browser. Emoji are characters, and you can call create_text to draw them, but the results arenā€™t very good. Instead, head to the OpenMoji project, download the emoji for ā€œgrinning faceā€ as a PNG file, convert to GIF, resize it to 16Ɨ16 pixels, and save it to the same folder as the browser. Use Tkā€™s PhotoImage class to load the image and then the create_image method to draw it to the canvas. In fact, download the whole OpenMoji library (look for the ā€œGet OpenMojisā€ button at the top right)ā€”then your browser can look up whatever emoji is used in the page.

Source