Changed from em back to px units. Solves problem on platforms with fixed default font size (happened on Debian + Chromium). Fonts seems to render also better with px sizes.
Simplified the structure of basic example, improved comments and readability.