Next.js Discord

Discord Forum

Weirdly rendered font specifically in Next.js

Answered
Yacare Caiman posted this in #help-forum
Open in Discord
Yacare CaimanOP
Hello, im getting weirdly rendered text in Next.js with pure basic project. Any clue what could be wrong?
Im pretty there is no issue with the font itself, as its the default next/font/google
https://github.com/shulinnn/face-assist - heres repo if needed
Answered by Clown
I literally do not know what could be wrong then.
View full answer

68 Replies

Yacare CaimanOP
Should look like this.
Might be on my side only and not actually be something wrong wrong Next.js but my text looks hella blurry
Remove font-sans
Also maybe try passing Inter with the className
Yacare CaimanOP
Tried that also, nothing changed
Tried the default one actually which u get when u bootstrap the project with create-next-app
Its grainy?
Yacare CaimanOP
And has white shadow underneath it
Though it might be something with the font format itself
Also , fully reinstalled my OS, so im sure its not in my OS.
@Yacare Caiman Hello, im getting weirdly rendered text in Next.js with pure basic project. Any clue what could be wrong? Im pretty there is no issue with the font itself, as its the default `next/font/google` https://github.com/shulinnn/face-assist - heres repo if needed
I dont see any shadow in this firstly. Secondly the icon is also grainy, meaning the screenshot you took is grainy itself, not the font.

Other than that i can only see a size difference
Yacare CaimanOP
U dont see any small weird white shadow under the text in the first pic i've sent?
You can try the same thing in something like codesandbox to ensure its not nextjs
Also, i may be blind cause i literally do not see a white shadow
Yacare CaimanOP
It could also be my gfx card, as my friend which is looking into it is saying, he sees it okay.
But that would be weird , because on other projects i've done, i dont see anything like that
Yacare CaimanOP
U see the jagged white edges?
Its like a glow around the text , a very little bit
The image itself is grainy
Yacare CaimanOP
Could u clone the repo and check for yourself? if its also at your side that u see it clearly in browser, then its my hw issue
I see it crystal crisp
Yacare CaimanOP
Aight , then its my hw issue then
Maybe my monitor cant handle such colors? idk
Surely have a mobile right?
Test that link
what OS are you on?
Im literally on a mobile rn
Yacare CaimanOP
windows 11
Ye, phone looks clear and nice
I dont think it matters tbh
it does
windows font rendering
its always crap
The rendering is done by the browser tho
Windows doesnt handle that
im pretty sure the rendering is different in chrome on macOS and windows for example
Yacare CaimanOP
Also disabled 2d canvas in chrome
Also tried brave , same thing
@KINXZ im pretty sure the rendering is different in chrome on macOS and windows for example
OS literally has nothing to do with font rendering of the browser
The browser handles the font rendering
i see the jagged on windows too
Try different browser maybe
Yacare CaimanOP
On edge same result
Weird.
Yacare CaimanOP
Windows shouldn't be effecting that at all
Yacare CaimanOP
i got nothing wrong
all looks clear
Try using subpixel-antialias
Yacare CaimanOP
Nah , same result
@KINXZ what gfx + monitor u have ?
Try a different font then
Maybe not a variable-size font this time
Roboto or urbanist maybe?
Try the link in my about me. That uses the urbanist font
Also this might have some solutions
Yacare CaimanOP
Your link looks ok.
It seems like it is issue with specific color combination
using Roboto now
and it seems like it has some sort of glow
@Clown https://answers.microsoft.com/en-us/windows/forum/all/specific-font-rendered-badly-and-unreadable-on/1575ec3e-a469-484d-bd14-99bbfa920eea
Yacare CaimanOP
Every text on my pc is readable , and everywhere else. This is actually a detail, but was wondering what could be wrong here.
I literally do not know what could be wrong then.
Answer
Yacare CaimanOP
Could also be issue with my monitor showing colors.
Thanks for your time, i do really appreciate that