Extract out GetFont from e.pattern.Text.py.