tinymce / tinymce-angular

Official TinyMCE Angular Component
MIT License
330 stars 92 forks source link

Issue with font family on mobile browser #161

Closed sukhminderx closed 4 years ago

sukhminderx commented 4 years ago

Hi

I have an issue with font family used in the content. I used comics sans. It shows correctly in destip or laptop browsers but it is not shown jn mobile devices and is inherited from application as shown:

Screenshot_20200503-043127_Chrome

Screenshot_20200503-043116_Chrome

Please let me know what can be the issue? Do I need to add fonts somewhere? How come right font is displayed in desktop browser??

jscasca commented 4 years ago

Hi @sukhminderx

If a font is not installed in a particular device it will fallback to a different font. You can use the custom_css property of the TinyMCE editor to specify custom fonts. Look at this codepen for example: https://codepen.io/anon/pen/przvoq

Let me know if this helps

sukhminderx commented 4 years ago

Thanks for this