Could Harry’s vision have been restored by magic?

Magic evolves over the series from being fanciful and entertaining in the first few novels to becoming quite serious and capable of practically anything. You can even use magic to KILL someone.
So, with all of its strength, how come there was no spell that could correct Harry’s vision? Even if there was no spell, a potion may have done the trick. As much as that would have made sense, it would have been bittersweet, because Harry Potter without his glasses isn’t really Harry Potter.