Hi again to everyone! I'm trying to apply external fonts on my Rich Text Editor of my angular 12 project, but only Arial and Courier New are working. I need at least Times New Roman and Tahoma to work. I tried adding via cdn, downloading .tff files and importing on css, tried google fonts but only Poppins font work. I realized that on syncfusion documentation, the example of using google fonts is not working too. Its an issue that has to be adjusted or is there another way to implement external fonts?
Thank you!
|
<link
rel="stylesheet"
/>
<link
rel="stylesheet"
/> |
|
<ejs-richtexteditor [fontFamily]="fontFamily">…..
</ejs-richtexteditor> |
|
public fontFamily: Object = {
default: 'Segoe UI',
items: [
{
text: 'Segoe UI',
value: 'Segoe UI',
class: 'e-segoe-ui',
command: 'Font',
subCommand: 'FontName',
},
{
text: 'Courier New',
value: 'Courier New,Courier,monospace',
command: 'Font',
subCommand: 'FontName',
},
{
text: 'Great vibes', // Goggle font
value: 'Great Vibes,cursive',
command: 'Font',
subCommand: 'FontName',
},
{
text: 'Times New Roman',
value: 'Times New Roman,Times,serif',
class: 'e-times-new-roman',
command: 'Font',
subCommand: 'FontName',
},
{
text: 'Arial',
value: 'Arial,Helvetica,sans-serif',
class: 'e-arial',
command: 'Font',
subCommand: 'FontName',
},
{
text: 'Tahoma',
value: 'Tahoma,Geneva,sans-serif',
class: 'e-tahoma',
command: 'Font',
subCommand: 'FontName',
},
{
text: 'Shizuru', // Goggle font
value: 'Shizuru, cursive',
class: 'e-shizuru',
command: 'Font',
subCommand: 'FontName',
},
],
}; |