0
$\begingroup$

I am watching an introductory course on computer science. At one part, it starts talking about unicode and how the bits 11111011000000010. He states that that codes for a laughing/crying face emoji.

However, he later on talks about how the pixels are each created through a number of bytes.He says the bytes 72, 73 and 33 make light red, light green and light blue.

My question is, if there are so many bytes which make up all those pixels in an emoji, how do the bits 11111011000000010 represent all those pixels of colour?

$\endgroup$

1 Answer 1

1
$\begingroup$

That binary number does not contain the information about the pixels in the image which is used to show the emoji. It is only a number which, according to the Unicode standard, refers to that emoji. Every program which shows text (e.g. email reader, web browser, ...) must have a way to convert that number into the actual pixels. Usually, in modern computers, there is a font file, which contains all the information about the pixels of each character. So, when the program has to display the emoji, it accesses the file and reads the pixel data corresponding to the emoji, and sends those pixels to the screen.

Note that the Unicode standard does not specify what these pixels are, but only that they should represent, say, a "cake emoji". Every program might use a different font, showing the cake in a different way.

This also happens for regular characters. Unicode says that "A" is represented by number 65, but there are many fonts that can be used to show that "A".

$\endgroup$
1
  • $\begingroup$ You will find that devices using different operating systems will have slightly different images for the same emoji. $\endgroup$
    – gnasher729
    Commented Jul 16, 2019 at 9:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.