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

Is there any way to add custom font family to editor Html #70

Open
prathasaxena opened this issue Jul 31, 2020 · 5 comments
Open

Is there any way to add custom font family to editor Html #70

prathasaxena opened this issue Jul 31, 2020 · 5 comments

Comments

@prathasaxena
Copy link

prathasaxena commented Jul 31, 2020

@stulip
I have been trying to add a custom font family to editor html:
I added jf-flat-regular-webfont.woff, jf-flat-regular-webfont.woff2 files parallel to the editor file.
image

then i added the custom fonts in the html
Screenshot 2020-07-31 at 6 04 17 PM

finally I applied the font in
contentCSSText: font-size: 45px; min-height: 200px; height: 100%; font-family:'jf_flatregular'; , // initial valid
};

but the changes did not reflect.

@prathasaxena prathasaxena changed the title Is there ay way to add custom font family to editor Html Is there any way to add custom font family to editor Html Aug 11, 2020
@vinivitin
Copy link

@prathasaxena Did you find a solution?

@prathasaxena
Copy link
Author

@prathasaxena Did you find a solution?

Screenshot 2020-09-21 at 7 41 51 PM
I used this, for some reasons it was not accessing local files.

@vinivitin
Copy link

Okay, thanks)

@FloMueh
Copy link

FloMueh commented Jan 13, 2021

Hey Guys, i made a fork of this repo and added the needed functionality.

BTW you can use local fonts but you have to convert them, i use https://transfonter.org/ for this.

best regards :)

@jakehasler
Copy link
Contributor

I've got an MR to provide more context on using custom fonts.

Check it out if you're lost like I was: #241

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