Changed dynamic text size assignment in virtual keyboard.

Resolves issue #167.