Closed Samyssmile closed 2 weeks ago
i guess you need to build up a custom toolbar like i did in my example: https://github.com/KillerCodeMonkey/ngx-quill-example/blob/master/src/app/components/custom-toolbar/custom-toolbar.component.html#L15
but maybe ask at the quilljs stackoverflow or repository if there is any "mapping" to achieve this without a custom toolbar
I want to avoid to build custom toolbar.
Solved it with adding this to global style.scss of angular.
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=aref]::before, .ql-snow .ql-picker.ql-font .ql-picker-item[data-value=aref]::before {
content: 'Aref Ruqaa'
}
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=roboto]::before, .ql-snow .ql-picker.ql-font .ql-picker-item[data-value=roboto]::before {
content: 'Reoboto'
}
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=mirza]::before, .ql-snow .ql-picker.ql-font .ql-picker-item[data-value=mirza]::before {
content: 'Mirza'
}
Thanks for sharing your solution :).
I thought that there may be a solution on quill side, but after checking the issues i just closed the browser tab... too many issues with fonts and font families + names. ^^
@Samyssmile please stop spamming each issue regarding fonts with your repo-link...
the solution is already posted here
My Config
My HTML Tag
My CSS
And Config Provider
As you can see I can pick fonts, and font is changed. But I cant see font names. Any ideas why?