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

[QUESTION] Cannot Include local font file into the editor #247

Closed
Tylefnx opened this issue Apr 15, 2022 · 0 comments
Closed

[QUESTION] Cannot Include local font file into the editor #247

Tylefnx opened this issue Apr 15, 2022 · 0 comments
Labels
question Further information is requested

Comments

@Tylefnx
Copy link

Tylefnx commented Apr 15, 2022

Type question here.
It may be a dumb question I've looked at #59 but I couldn't find a way to include my local fonts into the editor. (It works when i try to import it from googlefonts)

This is the style part of my html file:

    @font-face {
        font-family: 'Lato';
        font-style: normal;
        font-weight: 400;
        src: url("../../fonts/Lato-Regular.ttf") format("truetype");
        src: url("../../fonts/Lato-Bold.ttf") format("truetype");
    }

    @font-face {
        font-family: 'notonaskharabic';
        font-style: normal;
        font-weight: 400;
        src: url('../../fonts/fonts/NotoNaskhArabic-Regular.ttf') format('truetype');
        src: url('../../fonts/fonts/NotoNaskhArabic-Medium.ttf') format('truetype');
        src: url('../../fonts/fonts/NotoNaskhArabic-SemiBold.ttf') format('truetype');
        src: url('../../fonts/fonts/NotoNaskhArabic-Bold.ttf') format('truetype');
    }

    @font-face {
        font-family: 'roboto';
        font-style: normal;
        font-weight: 400;
        src: url('../../fonts/fonts/Roboto-Regular.ttf') format('truetype');
        src: url('../../fonts/fonts/Roboto-Bold.ttf') format('truetype');
        src: url('../../fonts/fonts/Roboto-Medium.ttf') format('truetype');
     }
     
     @font-face {
        font-family: 'geeza-pro';
        font-style: normal;
        font-weight: 400;
        src: url('../../fonts/Geeza-Pro-Regular.ttf') format('truetype');
        src: url('../../fonts/Geeza-Pro-Bold.ttf') format('truetype');
    }

`
Paths are different i know and i think that it's a path problem but i'm not sure about how can i find the right path.

@Tylefnx Tylefnx added the question Further information is requested label Apr 15, 2022
@Tylefnx Tylefnx changed the title [QUESTION] [QUESTION] Cannot Include local font file into the editor Apr 15, 2022
@Tylefnx Tylefnx closed this as completed Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant