FontDemo: convert to layout code.

Fixes #9241.