Git Product home page Git Product logo

Comments (35)

Shadyyey avatar Shadyyey commented on September 17, 2024

code?????
-.-

from discord-canvas.

euandrelucas avatar euandrelucas commented on September 17, 2024

no, it only gave this error when I downloaded the npm

from discord-canvas.

Shadyyey avatar Shadyyey commented on September 17, 2024

@yADGithub Try re-installing discord-canvas and canvas.

from discord-canvas.

Vozmak avatar Vozmak commented on September 17, 2024

i have it problem too

from discord-canvas.

imyanice avatar imyanice commented on September 17, 2024

Ok send me your code pls

from discord-canvas.

imyanice avatar imyanice commented on September 17, 2024

@Vozmak

from discord-canvas.

Vozmak avatar Vozmak commented on September 17, 2024

Ok send me your code pls

Hi. The error appears immediately upon require
Const Canvas = require("discord-canvas") @xixi52

from discord-canvas.

imyanice avatar imyanice commented on September 17, 2024

Try npm uninstall discord-Canvas then npm i discord-canvas

from discord-canvas.

Vozmak avatar Vozmak commented on September 17, 2024

Try npm uninstall discord-Canvas then npm i discord-canvas

Anyway @Yan-Jobs

from discord-canvas.

Vozmak avatar Vozmak commented on September 17, 2024

Full error

return Canvas._registerFont(fs.realpathSync(src), fontFace)
^

Error: Could not parse font file
at Object.registerFont (C:\Users\HP\Desktop\Текст и войс\node_modules\canvas\index.js:48:17)
at Object. (C:\Users\HP\Desktop\Текст и войс\node_modules\discord-canvas\index.js:3:8)
at Module._compile (node:internal/modules/cjs/loader:1108:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
at Module.load (node:internal/modules/cjs/loader:973:32)
at Function.Module._load (node:internal/modules/cjs/loader:813:14)
at Module.require (node:internal/modules/cjs/loader:997:19)
at require (node:internal/modules/cjs/helpers:92:18)
at Object. (C:\Users\HP\Desktop\Текст и войс\commands!profile.js:2:16)
at Module._compile (node:internal/modules/cjs/loader:1108:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
at Module.load (node:internal/modules/cjs/loader:973:32)
at Function.Module._load (node:internal/modules/cjs/loader:813:14)
at Module.require (node:internal/modules/cjs/loader:997:19)
at require (node:internal/modules/cjs/helpers:92:18)
at C:\Users\HP\Desktop\Текст и войс\index.js:38:21

from discord-canvas.

imyanice avatar imyanice commented on September 17, 2024

2s

from discord-canvas.

imyanice avatar imyanice commented on September 17, 2024

Do u have this file ? : /assets/fonts/theboldfont.ttf

from discord-canvas.

Vozmak avatar Vozmak commented on September 17, 2024

sec

from discord-canvas.

Vozmak avatar Vozmak commented on September 17, 2024

in canvas or discord-canvas?

from discord-canvas.

Vozmak avatar Vozmak commented on September 17, 2024

Do u have this file ? : /assets/fonts/theboldfont.ttf

image
Yes, have

from discord-canvas.

imyanice avatar imyanice commented on September 17, 2024

Is it empty ?

from discord-canvas.

Vozmak avatar Vozmak commented on September 17, 2024

no

from discord-canvas.

imyanice avatar imyanice commented on September 17, 2024

Ah

from discord-canvas.

Vozmak avatar Vozmak commented on September 17, 2024

font in my language in this file

from discord-canvas.

Vozmak avatar Vozmak commented on September 17, 2024

sry for my english

from discord-canvas.

imyanice avatar imyanice commented on September 17, 2024

Try copy all your files in a new directory but don’t copy this files: package-lock.json or yarn.lock node_modules folder

from discord-canvas.

imyanice avatar imyanice commented on September 17, 2024

sry for my english

I don’t care I am french 13 yrs old lmao

from discord-canvas.

imyanice avatar imyanice commented on September 17, 2024

Try copy all your files in a new directory but don’t copy this files: package-lock.json or yarn.lock node_modules folder

And reinstall dependency with npm init -y Or yarn (I think) and npm install or yarn install

from discord-canvas.

Vozmak avatar Vozmak commented on September 17, 2024

ok, i try it later, thx

from discord-canvas.

Vozmak avatar Vozmak commented on September 17, 2024

Anyway, i create absolutly new project and anyway error @Yan-Jobs

from discord-canvas.

imyanice avatar imyanice commented on September 17, 2024

Ah euh that’s not a good thing

from discord-canvas.

Vozmak avatar Vozmak commented on September 17, 2024

yes( very good npm, but dont work, ah

from discord-canvas.

imyanice avatar imyanice commented on September 17, 2024

xD

from discord-canvas.

imyanice avatar imyanice commented on September 17, 2024

Tomorrow I will dm the creator and ask him your problem

from discord-canvas.

Vozmak avatar Vozmak commented on September 17, 2024

Ok, thx

from discord-canvas.

imyanice avatar imyanice commented on September 17, 2024

DMed @Vozmak

from discord-canvas.

Vozmak avatar Vozmak commented on September 17, 2024

DMed @Vozmak

Ok, I wait @Yan-Jobs

from discord-canvas.

imyanice avatar imyanice commented on September 17, 2024

@xixi52 c’est là xD

from discord-canvas.

imyanice avatar imyanice commented on September 17, 2024

Enfin tu peux aussi voir les autres lmao

from discord-canvas.

OfficialRDB avatar OfficialRDB commented on September 17, 2024

(process:12152): Pango-WARNING **: 18:08:16.010: couldn't load font "Keep Calm Medium Not-Rotated 37px", falling back to "Sans Medium Not-Rotated 37px", expect ugly output.

The fonts don't load. Even while they are in the right place. I even installed the fonts on my windows server just in case.

EDIT:
I just turned off the font register and installed the fonts on my windows servers, changed the names how they are seen by windows. Works fine now.

from discord-canvas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.