How do authors do this?

Do what? The words that go out of the speechbubble?