notmike101 / betterdiscord-google-fonts

Allows use of Google Fonts on Discord through a simple settings UI
Do What The F*ck You Want To Public License
9 stars 2 forks source link

[BUG] An error has encountered while trying to load this plugin v2.2.9 #60

Open chanhh01 opened 2 years ago

chanhh01 commented 2 years ago

BetterDiscord ran into a problem this morning for me, and after repairing better discord, google font plugin failed

chanhh01 commented 2 years ago

image

Roszek-Dragon commented 2 years ago

Replicated, bug confirmed.

notmike101 commented 2 years ago

@chanhh01 @Roszek-Dragon Can either of you send me the version of Discord and BetterDiscord that you're using?

ashergz commented 2 years ago

Discord version: Stable 151983 (3f2a993) Host 1.0.9006 BD 1.8.0

Btw, discord recently made some changes on their end which rendered pretty much all the plugins unusable. Yours somehow was still working up until this morning.

Inui-senpai commented 2 years ago

By the way, the folder listed in error log really doesn't exist anymore after repairing BetterDiscord: Snap1720

chanhh01 commented 2 years ago

@notmike101 my discord version is 1.0.9006

ashergz commented 2 years ago

In the meantime, I'm using this css snippet to use the font of my choice:

/ To add a font, either install the font on your computer through the TTF file, or @import a font from http://fonts.google.com/ /

:root { --font: 'Comic Sans MS'; }

::placeholder, body, button, input, select, textarea { font-family: var(--font), sans-serif; }

Inui-senpai commented 2 years ago

In the meantime, I'm using this css snippet to use the font of my choice:

It works, but doesn't cover all fonts that can be replaced. So I took code from the #36 and slightly modified it, and it works like a charm.

chanhh01 commented 2 years ago

In the meantime, I'm using this css snippet to use the font of my choice:

It works, but doesn't cover all fonts that can be replaced. So I took code from the #36 and slightly modified it, and it works like a charm.

may i know how u do it? is there something that im doing wrong? image

Inui-senpai commented 2 years ago

may i know how u do it? is there something that im doing wrong?

Open User Settings - Custom CSS, copypaste this code (and replace "Whitney" with your font name, if it's already installed in your OS):

:root {
    --font-primary: "Whitney" !important;
    --font-display: "Whitney" !important;
    --font-headline: "Whitney" !important;
}

Then press Update and Save.

KKITAANIK commented 1 year ago

This remains an issue; I have the following traceback:

Error: ENOENT: no such file or directory, lstat 'C:\Users\pu0aw\AppData\Local\Discord\app-1.0.9013\betterdiscord'
    at Object.T [as realpathSync] (betterdiscord/renderer.js:4:327228)
    at L.getFilePath (betterdiscord/renderer.js:4:328498)
    at L._load (betterdiscord/renderer.js:4:328593)
    at betterdiscord/renderer.js:4:331784
    at eval (betterdiscord://plugins/betterdiscord-google-fonts.plugin.js:92:20)
    at M.requireAddon (betterdiscord/renderer.js:4:35818)
    at M.loadAddon (betterdiscord/renderer.js:4:8323)
    at M.loadAddon (betterdiscord/renderer.js:4:33490)
    at AsyncFunction.<anonymous> (betterdiscord/renderer.js:4:6315)

I'm on Better Discord v1.9.3