Add glyph advance cache to enhance speed of layout