0

Image example

In the picture above, I sent two messages. One has 4 characters, the next has 6 characters.

How and why is it that they are both able to fit in the same bubble size/container although one has more content than the next, and how is this decided by the design?

1
  • Are you sure this case is not due to 'mhmm' and 'thanks' being exactly the same width in the given font and on the given display / app / OS?
    – Vincent
    Nov 24, 2014 at 10:07

1 Answer 1

4

My guess is that the bubble just calculates the required margin at both sides of the word:

--word--
--longerword--

What happened in this case is that, because the letters of the typeface have different widths, it looks like the bubble is staying the same size. When, in reality, it's just a coincidence. If the font were fixed-width, so each character measured the same horizontally, then you would notice the difference in length:

--iii--
--iiiii--
--mmm--

The same with a non-fixed-width font:

--iii--

--mmm--

(both have 3 characters, one uses more space).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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