gravity-pdf
gravity-pdf copied to clipboard
Using the characters ( and ) in the font name will generate an invalid CSS Example
Description
If adding a new font via GPDFAPI::add_font()
and it includes the character (
or )
the developer template sample will not display with the correct reference name.
Step To Reproduce Steps to reproduce the behavior:
- Add a font with
GPDFAPI::add_font()
- Open the Font Manager
- Select one of the fonts
- Open the developer code sample in the right pane
Expected behavior The font family reference is correct
Screenshots
Additional context It isn't possible to get into this state through the UI as we prevent non-alpha numeric characters in the font name. Let's allow this character in the font name but strip it when generating the font key.