Unity DirectTMP
com.amircollider.unitydirecttmp is an OpenUPM Unity package. Add a Direct Font component to a TextMeshPro label, give it a .ttf, and that label is drawn from the file. No font asset to build, no character set to choose. • One component, one label, one font. Nothing is applied project-wide and nothing is stored in a settings asset — use a different font on every label if you want. • Persian, Arabic and Urdu that actually read — letters joined and in reading order. The joined shapes come from the font's OWN OpenType tables, so modern faces that carry no legacy presentation codepoints (Vazirmatn, Sahel, Shabnam, IRANSans, Noto Sans Arabic) join correctly. Verified glyph-for-glyph against HarfBuzz. • A font per language, on the same label. Fill in a Persian font, a CJK font and a Latin font; the script the text is actually in is detected each time it changes and the matching font is used. • No more outline bleed. TextMeshPro labels sharing a font share one material, so an outline on one is an outline on all. 'Own material' gives a label its own. • Japanese, Chinese, Korean, Cyrillic, Thai, Greek and symbols with no setup at all. • Rich-text tags are never shaped or reordered, and label.text is never written to. Free and MIT licensed. Requires TextMeshPro (bundled with Unity). No other dependencies.
Install this package from the OpenUPM scoped registry with the instructions on this page, or use openupm-cli to update Packages/manifest.json.
Repository: https://github.com/AmirCollider/UnityDirectTMP.
Owner: AmirCollider.
Topics
Related Unity Packages
- AIO Unity CLI Asset com.aio.cli.asset
- CustomLocalization4EditorExtension com.anatawa12.custom-localization-for-editor-extension
- Model-View-ViewModel Toolkit com.bustedbunny.mvvmtoolkit
- Material-Icons Font com.fonts.material-icons
- Roboto Font com.fonts.roboto
- UI com.homelessskin.ui
For registry setup problems, see Unity scoped registry troubleshooting.