How to correctly use font weight and font styles in Unity TextMeshPro

preview_player
Показать описание
Using different Font weights like Bold or Italic, as well as whole Font Families is super easy in TextMeshPro in Unity. You just need to set them up once and you can easily use and customize them everywhere in your project. In this tutorial, I will show you how you can use stylesheets in TextMeshPro to make your life easier while finetuning your game's typography!

One little "but": If you do not use text styles consistently or at all throughout your project, and instead have dedicated "this text box uses the [BOLD] fon asset" and you want to use its corresponding italic style: You will have to set up the font styles in the font asset again just like I showed you for the regular style. If you use styles, though and Bold/Italicise your fonts through tags, one-time set up is all you need.

💬 Discord 💛
You are very welcome to join!

🛍️ Store links 🛍️

📖 Chapters 🔖
00:00 What we are going to learn
00:21 What is a font family? And why use them?
01:05 What happens if you do not have the correct font weight installed
01:37 The problem with TextMeshPro's handling of font weights
02:06 Filling in the font weights in your main font asset
03:01 The quick fix
03:28 The better way: Creating stylesheets for Font weights so you can reuse them easily
04:07 Why go the extra way of using a style sheet?

#unitytutorial
Рекомендации по теме
Комментарии
Автор

I've always used TMPro's default font because I didn't want to bother with the how and why. Stylesheets give the topic a completely different approach. Since I've been working in web development for over 15 years, stylesheets should actually be easy for me. Thanks for the video!

yoko-kun
Автор

Another great video, Thanks Christina!

alexleonardkrea
Автор

Amazing tutorial! Thank you so much :).

PitiITNet
Автор

Such a great tutorial! Can you make a video on properly matching photoshop ui design within unity? Mainly the font sizes are a nightmare!

ayyappaj
Автор

Thanks for the another awesome tutorial!

Have you worked localisation with TMPro and creating a font asset for all supported languages? It would be nice to have a tutorial for the workflow and how to reduce the size for fonts asset. Thanks a lot

GameRocker
Автор

Great tutorial, but I returned to the old method because this method disables TMP's bold feature using SDF.

egunan
welcome to shbcf.ru