[Closed, I guess] Imported font appears very messy on UI Text

I’ve imported a custom font and placed it on a UI Text. I’ve noticed that there are multiple lines around the characters on the text. As the text is scaled down more random lines appear and as it’s scaled up less appear. This is what it looks like:

You may have to right click on the image and press “Open image in new tab” to really see the random lines.
Edit: Oh, it turn out that this problem also occurs on 3d text. However I also get this problem with other custom fonts.

So if anyone here is having this problem and doesn’t know how to fix it, if you got to Edit > Project settings > quality and find Anti-Aliasing turn it to disabled.