You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In using custom fonts I cannot get the editor to set it as a default. After initializing Quill I am using quill.format but the quill.format('font', fontname) will not work but quill.format('size', '24pt') does works.
Would anyone have some insight on how to get this to work.
A work around would be to set the css font on the .ql-editor as the css shows. I have this commented out for now because while that does work I need it to be in my quill.getContents(). For export reasons I need each Op specify the font to use.
In using custom fonts I cannot get the editor to set it as a default. After initializing Quill I am using quill.format but the quill.format('font', fontname) will not work but quill.format('size', '24pt') does works.
Would anyone have some insight on how to get this to work.
A work around would be to set the css font on the .ql-editor as the css shows. I have this commented out for now because while that does work I need it to be in my quill.getContents(). For export reasons I need each Op specify the font to use.
Steps for Reproduction
You can see a reproduction of this here:
https://jsfiddle.net/hk9e60zg/6/
Expected behavior:
As soon as I start typing the font should be applied.
Actual behavior:
The font isn't applied but the size is.
Platforms:
macOS
Safari 17.5 and Chrome 128
Version:
2.0.2
The text was updated successfully, but these errors were encountered: