Fix font feature tag validation (#13542)

The previous implementation that I implemented had two issues:
1. It did not throw an error when the user input some invalid values
such as "panic".
2. The feature tag for OpenType fonts should be a combination of letters
and digits. We only checked if the input was an ASCII character, which
could lead to undefined behavior.

Closes #13517 

Release Notes:

- N/A
18b4573064张小白 committed on 6/26/2024, 3:01:48 PM· committed by GitHubparentd044dc8
1 file changedLine totals unavailable