Okay, so i got my Dashboard working but i need to import a custom font (All of us know the cool font on digital alarm clocks, watches and/or old displays).
How to import this font and actually print updating text?
If you’re like me, you can’t figure out why your TextMeshPro object won’t accept the fonts you’ve added and you found this on google and the top answer telling you to read the manual was about as helpful as throwing your laptop out the window.
Here’s what I had to do:
Put the fonts you want to use into the asset folder (or a fonts folder in your asset folder).
Now in the Unity project explorer, right click the font.
Click Create > TextMeshPro > Font Asset.
Now you will be able to use it as a font with your TextMeshPro text.
Make sure that you’re creating the Font Asset by RIGHT CLICKING the existing real font and doing the Create step. Do not create it by right clicking a blank area in the project explorer.
This was the exact issue I was having with importing Google fonts. After following these instructions, I was able to see the font in the TextMeshPro component.
This happens ALL the time on here and paints Unity3D in a very dim light. Genuine question asked, and the first reply is always some sarcastic know-all who doesn’t appreciate that neither he nor anybody else knows everything. Even had one recently with a LMGTFY link.
Well I DID Google it, and I ended up here.
Know-alls should bear this in mind in future - preferably before posting.
1 Like
I shouldn't be upvoting this because it's not an actual answer to the question. But yeah, turns out we're not robots and this isn't anal-yst SO.
I just want to add to the fact that here in the future (2022) the Unity manual is so bad that it's easier to search for answers like these or to just play around with code/intellisense until it works
@Superrodan lol! I so agree, unity community is the only real downside to the engine workflow.
However, as a bit of a side note, I typed add font to unity out of curiousity and it literally came straight to this forum post. Not everyone wants to read through an entire manual just to find the answer to a simple question like adding a font to unity text. Most of the explanations in the manual are written so robotically it is hard to even get an answer out of it. Most post questions on the forum for that reason not expecting a jerk response like “look it up or read the manual moron!!!” etc. If it bothers you that bad why even waste time and effort replying?? It is only going to drive new potential customers for unity away and give the helpful and polite users (they do exist in this community I promise!) a really bad reputation. Think about how your answers are going to impact the community as a whole guys, and don’t just jump into “I know everything there is to know but I refuse to answer because you should have to earn my knowledge because I am holier then thou!” replies.
On the upside to this, and for future unity beginners who are just looking for the simple solution to this question;
To create a custom font select ‘Create->custom font’ from the project window. This will add a custom font asset to your project library.
To add a pre-existing font (created in photoshop or downloaded) simply import it as an asset in the project asset library and it will be ready to select in the font selection source.
@biohazard - Wasn't meant to be rude, but more crude and blunt. And you obviously haven't even tried a google search before posting, let alone open the manual, reference manual or scripting reference. Any of them would have helped you.
I wish I could downvote this but I need 100 rep. This answer is just stupid, delete it or edit it please. Now this is one of the highest ranked pages when Googling font + unity. Not sure how this Q&A site works but on the SE network this should get downvoted to oblivion so it would not get ranked on Google.
MedMenya is right . It needs to be edited , i stopped coming to unity answers because everyone has a bad personality when answering the questions. Seriously , RTFM?
you should use better tags
– anon47167959