Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font not appear and can't change #76

Open
jacklesphere opened this issue Feb 4, 2022 · 4 comments
Open

Font not appear and can't change #76

jacklesphere opened this issue Feb 4, 2022 · 4 comments

Comments

@jacklesphere
Copy link

jacklesphere commented Feb 4, 2022

Screenshot 2022-02-04 at 11 26 27 AM

how to load the font list in angular??

@khyokhyo
Copy link

Passing the below in options solved the problem for me.

fonts: { showDefaultFonts: false }

Detailed documentation - https://docs.unlayer.com/docs/font-management

I think the showDefaultFonts logic is written in reverse.

So, in my html file I have <email-editor [options]="options" (loaded)="editorLoaded()"></email-editor>.

In my component, I have options = {fonts: { showDefaultFonts: false }}.

@jacklesphere
Copy link
Author

Passing the below in options solved the problem for me.

fonts: { showDefaultFonts: false }

Detailed documentation - https://docs.unlayer.com/docs/font-management

I think the showDefaultFonts logic is written in reverse.

So, in my html file I have <email-editor [options]="options" (loaded)="editorLoaded()"></email-editor>.

In my component, I have options = {fonts: { showDefaultFonts: false }}.

great, this solve my problem, thank you...

@Mallesh-Nagothi
Copy link

Yes, this solved my problem. The font logic is implemented in reverse!

@hridsn99
Copy link

hridsn99 commented Apr 27, 2022

This solved my problem with the initial display, but it messed up the styling in preview. I added the fonts I was using as custom fonts to help with that. I wish the developers would look into this, it's a funny bug

options = {
    fonts: { 
      showDefaultFonts: false,
      customFonts: [
        {
          label: "Playfair Display",
          value: "'Playfair Display',serif",
          url: "https://fonts.googleapis.com/css?family=Playfair+Display:400,700",
        },
        {
          label: "Montserrat",
          value: "'Montserrat',sans-serif",
          url: "https://fonts.googleapis.com/css?family=Montserrat:400,700",
        },
      ],
    }
}

Note: I use the free plan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants