fixes foreground layer glyphs widths bug