added support for padding in glyph cache and text style