Unity DirectTMP Release notes
Every version of Unity DirectTMP, newest first, and what each one fixed or added — without opening GitHub. The full list, with the detail and the reason for every change, is the package’s CHANGELOG.md.
Unity DirectTMP 2.2.0 Latest
Tags, emoji and wrapped lines, right in Persian
- A tag in the middle of a Persian sentence no longer turns it around: <b>, <color>, <link> and sprites stay on the words they were written around, and a word joins across a colour change.
- On a label that wraps, tags are no longer reordered with the letters (<b> stopped showing up as “<b/>”), and every line keeps its paragraph’s direction, even one that starts with an English word.
- Emoji are neutral, as Unicode says: an emoji at the start of a Persian line is read first, and two emoji keep the order they were typed in. Right-to-left scripts above U+FFFF (Adlam, Hanifi Rohingya) are right to left.
- Brackets are resolved as pairs (UAX #9 rule N0), and Windows line endings no longer move in labels that do not wrap.
- New: DirectRichText.Prepare / Shape / Reorder, and DirectShaper.Shape(text, sourceIndices). The reordering was checked against a reference Unicode implementation on 144,000 strings.
Unity DirectTMP 2.1.15
Persian in Unity DocSnap’s windows, again
- Persian in Unity DocSnap’s windows works again with DirectTMP installed: the class DocSnap finds by name, DirectDisplayText, was missing from the 2.1.x releases.
- New: DirectDisplayText.Prepare(text) and Prepare(text, direction) — joined, reordered text for IMGUI, Editor windows, tooltips and logs. Its signature is a contract, and a test fails the build if it ever changes.
Unity DirectTMP 2.1.14
A font for emoji, for each CJK language, and for any script
- An Emoji font field, also added as the first fallback, so emoji render inside a Persian or Japanese sentence.
- Japanese, Chinese and Korean can each have their own font, told apart by what is in the text (kana, hangul, Han), and Cyrillic got a field of its own.
- Any other script, as a rule you add: a name, Unicode ranges and a font — or “Whole font”, which uses every glyph the font really has. The Inspector reads what a font covers and says when it covers nothing a rule asks for.
- Fixed: emoji and every other character above U+FFFF were invisible to script detection.
Unity DirectTMP 2.1.13
The first word stays on its line
- The first word of a wrapped Persian line no longer drops to the line below on its own: the space a line breaks after is left off it before it is reordered.
Unity DirectTMP 2.1.12
Wrapped lines, measured honestly
- A Persian sentence set from code no longer comes out with its lines shuffled (the same sentence typed into the Inspector was fine).
- Shrinking the font no longer leaves a two-line sentence on two lines, and a measurement is checked again even when nothing seems to have moved.
- A label with no right-to-left text in it no longer measures at all.
Unity DirectTMP 2.1.11
Outlines that work, and no false alarms
- An outline did nothing on any label; it works now, and Outline ▸ Width and Outline ▸ Colour are fields on the component.
- New: DirectTMP.Outline(label, width, colour), from code.
- A working font no longer reports itself, in red, as one that could not be built, or logs “Could not build a font asset” on every edit.
- “Own material” could leave a label drawing out of the wrong atlas; fixed.
Unity DirectTMP 2.1.10
Joined in the starting language too
- A label came out unjoined when its language was the one the game started in, and correct once you switched to that language; it is joined from the start now.
Unity DirectTMP 2.1.9
The baked table loads
- The table Bake Fonts For Build writes always loaded as null in a player build; it loads now.
Unity DirectTMP 2.1.8
A font asset in every player build
- A player build could end up with no font asset at all; fixed.
Unity DirectTMP 2.1.7
Builds that look like the Editor
- Persian and Arabic came apart in a player build while being perfect in the Editor: reading the font’s joining rules (GSUB) needs the font’s bytes, and a build has no .ttf beside it. Those bytes now go into the build.
- New: Bake Fonts For Build, a link.xml against code stripping, and DirectFontReport, a report of what a label did.
Unity DirectTMP 2.1.6
Windows line endings
- Text typed into Unity’s own fields (Windows line endings) no longer gets a stray line break at the front of a right-to-left line.
- The diagnostic reports what is actually wrong.
Unity DirectTMP 2.1.5
Wrapped lines, with typed line breaks too
- The per-line reordering added in 2.1.4 is no longer skipped for text that contains a line break the author typed.
Unity DirectTMP 2.1.4
Wrapped lines in reading order
- A wrapped right-to-left paragraph no longer comes out with its lines in the wrong order: each display line is reordered on its own.
- New: the “Keep wrapped lines in order” option.
Unity DirectTMP 2.1.3
No more one letter left unattached
- One letter in a word could come out unattached while the rest were fine (ص in کص); each shape now comes from the font’s own joining rules first.
- Diagnose Selected Label says, letter by letter, whether a glyph came from the font’s joining rules (gsub) or the legacy presentation block (cmap).
Unity DirectTMP 2.1.2
The component does its job
- The component attached itself and then changed nothing; the label now parses its text again.
- Glyphs could be rasterized out of the wrong font; fixed.
- New: Unity DirectTMP ▸ Diagnose Selected Label.
Unity DirectTMP 2.1.1
Menus that appear
- The “missing the class attribute ExtensionOfNativeClass” error, once per label on every scene load, is gone, and the menu appears.
- New: Unity DirectTMP ▸ Add Direct Font to Selection, and Remove Direct Font from Selection.
Unity DirectTMP 2.1.0
One component, one label, one font
- The Direct Font component is back, in place of 2.0.0’s one project-wide setting: one font per label, and two labels with two fonts know nothing of each other.
- A font per language on the same label, and “Own material”, so an outline on one label stays on that label.
- The menu that did not appear now does.
Unity DirectTMP 2.0.0
A rewrite: Persian and Arabic that join
- Joined shapes are read from the font’s own GSUB table, so modern faces with no presentation codepoints (Vazirmatn, Sahel, Shabnam, IRANSans) join, and so do letters Unicode never gave a presentation form.
- Checked glyph-for-glyph against HarfBuzz on a Persian, Arabic and Urdu corpus in five fonts; every word matches.
- Text is no longer written back into label.text, and rich-text tags survive.
- Removed: eleven windows and about 18,000 lines — the font catalog, the health check, the converter, the Editor-UI restyling and the rest.
Unity DirectTMP 1.3.0
Global Font: the whole package in one screen
- New: Unity DirectTMP ▸ Global Font… — one screen that puts a font everywhere, survives a scene reload, and restyles Unity’s own interface from the same checkbox.
- New APIs: DirectTMP.RefreshGlobalFont(), ClearGlobalFont(), GlobalFontActive, GlobalFontAsset, and DirectFontDiagnostics.
- A font asset with no usable material, or a font build that failed, no longer fails silently.
Unity DirectTMP 1.2.2
One missing glyph stays one missing glyph
- One letter’s missing glyph no longer changes the shape of the letter beside it.
- The shaper trusts glyphs this package installed itself, a top-up that succeeds on a second try is believed, and a Static font asset no longer fails silently one glyph at a time.
Unity DirectTMP 1.2.1
Neighbours and outlines
- A gap in a font for one letter no longer shows up as a broken neighbour (ر took the blame), and a font whose final reh is its ordinary reh now reports one.
- Turning on Outline for one label no longer outlines every label using the same font.
Unity DirectTMP 1.2.0
The font’s own joining rules
- A font’s own joining rules are read, and the missing joined forms are built from them; ی is only stood in for when it needs to be.
- A font that cannot set Persian says so, and the warning says what was tried; preserving a label’s material no longer draws strokes at the wrong weight.
- New: More Fonts.
Unity DirectTMP 1.1.1
Honest about what a font cannot join
- A letter the font cannot join now joins nothing instead of joining wrongly, ک and ی are stood in for, and the font says so out loud.
Unity DirectTMP 1.1.0
DirectText, and wrapped paragraphs top to bottom
- New: DirectText, and wrapped paragraphs that read top to bottom.
- New: DirectRichText, which keeps rich-text tags out of shaping and reordering.
- Fonts with no presentation forms are no longer boxes, and the language dropdown no longer shows Persian backwards on its button.
Unity DirectTMP 1.0.1
Persian in every Editor window
- New: DirectArabicShaper, DirectBidi and DirectDisplayText.
- Every Persian string in every window, font names, asset paths and preview text now read right, and long paragraphs wrap in the right direction.
- Dropdown lists, the menu bar, right-click menus and modal dialogs are left alone, and the Fallback Chain window is fixed.
Unity DirectTMP 1.0.0
Editor Font, and Inky
- New: Editor Font — any font for Unity’s own interface (menu bar, Hierarchy, Inspector, Project window, Console), so a name like 敵スポーナー or فونتها reads instead of □□□. In memory only, so quitting Unity undoes it completely.
- New: Inky, the mascot, and a description on every field in the Inspector and on the Settings page.
- Requires TextMeshPro 3.0 or newer.
Unity DirectTMP 0.1.0
The first release
- The DirectFont component: hand it a .ttf or .otf and it builds a dynamic font asset from the file and puts it on the label, in edit mode too.
- DirectTMP, the small static API: Load, LoadFromFile, LoadFromBytes, Preload, ClearCache and the rest.
- The Multilingual Demo sample: one scene, one font, twelve languages.
How to update
- Installed from OpenUPM: open the Package Manager, select Unity DirectTMP and press Update.
- Installed from the git URL: Unity never tells you a newer version exists. Add the same URL again (Package Manager ▸ + ▸ Add package from git URL) and it fetches the newest one.
- Afterwards, compare the version the Package Manager shows with the latest one on this page.