Updated text shadow algorithm