Merge "Simplified the glyph reference counting" into devel/master