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.
📖 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?
📁 Get the PDF Version of my tutorials
Would you rather read a book? I have a collection of eBooks on the Unity UGUI System here:
📘 Itch: https://christinacreatesgames.itch.io/
💬 Join the Discord
You are very welcome to join / discord !
🎮 Play My Games
🎲 https://christinacreatesgames.itch.io
🛍️ Recommended Assets
https://assetstore.unity.com/lists/hi... [affiliate]
📖 List of books all around Gamedev and Design I recommend: https://www.christinacreatesgames.com...
Otherwise, using my affiliate codes for these stores helps to support my channel:
🛒 Unity Asset Store: https://assetstore.unity.com/?aid=110... [affiliate]
🏪 Synty Store: https://syntystore.com/christinacreat... [affiliate]
🪸 Envato Elements: https://1.envato.market/ChristinaCrea... [affiliate]
🟦 Amazon: https://amzn.to/3G8NgFq [affiliate]
🌟 Actionable UI Feedback for Your Game
I offer UI consulting for gamedev projects! With 15+ years of design experience and a background of a teacher, I’m here to help:
👉 Learn more: https://www.vennegerts.com/en/gamedev...
☕ Support Me on Ko-fi
If you enjoy the content and want to support my work:
💛 Buy me a cocoa: https://ko-fi.com/christinacreatesgames
#unitytutorial #unity3d #gamedev #indiedev