LightSideKittens/UniText
关于
UniText 1.0——UniText for Unity 文本引擎的早期开源(MIT)版本:支持 HarfBuzz 字形整形、双向文本(BiDi)、表情符号和 150 多种语言。当前引擎为 UniText Folio,可在 unity.lightside.media/unitext/pricing 免费试用。
游戏与模拟器可以做什么
- 🌐 - Every language - Arabic, Hebrew, Hindi, Thai, CJK, and every other Unicode script. One component, automatic font fallback
- 🔄 - Full BiDi - Mixed LTR/RTL with numbers and punctuation renders correctly (UAX #9)
- 😀 - Native Color Emoji - ZWJ sequences, skin tones, flags via system fonts. Zero extra build size
- 🏷️ - Extensible Markup - 15+ built-in modifiers, custom parse rules, shared configurations
实测星标增长
- 24小时
- -3
- 7天
- -3
- 15天
- +2
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文UniText 1.0 — Early Open-Source Release
This repository holds UniText 1.0.0, the first open-source release of UniText, free under MIT.
The engine has been rewritten since then. The current version, UniText Folio, adds SDF and MSDF rendering, variable fonts, effects, rich text editing and much more, so 1.0.0 does not show what UniText can do today.
Evaluating UniText for a project? Request a free 30-day trial of UniText Folio.
UniText Folio — Every language. Any style. No fonts required. Top performance.
UniText Folio supplies a common text model for labels, input fields, rich editors and virtualized documents in Canvas UI and world space. Capabilities include native emoji, variable and pixel fonts, Font Memory Mapping, rich editing, layered styles and text animation. Modifier, parser, input and decoration extensions compose through the same pipeline. Shared LightSide systems provide reusable infrastructure for authoring and runtime work.
UniText belongs to the wider LightSide ecosystem. Common implementations include paints, gradients, textures, filters, state, clocks, input, geometry, GPU infrastructure and editor tools. Text, shapes and Lottie use shared shaders, materials and batching. MoveIt animates exposed component and nested layer properties.
Also available on the Unity Asset Store.
UniText 1.0.0
Open-source Unicode text engine for Unity
Built on HarfBuzz — the same shaping engine behind Chrome, Firefox, Adobe InDesign, and Android.
891,757 Unicode conformance tests passed. Zero failures.
Key Features
| Feature | Description | |
|---|---|---|
| 🌐 | Every language | Arabic, Hebrew, Hindi, Thai, CJK, and every other Unicode script. One component, automatic font fallback |
| 🔄 | Full BiDi | Mixed LTR/RTL with numbers and punctuation renders correctly (UAX #9) |
| 😀 | Native Color Emoji | ZWJ sequences, skin tones, flags via system fonts. Zero extra build size |
| 🏷️ | Extensible Markup | 15+ built-in modifiers, custom parse rules, shared configurations |
| 👆 | Interactive Text | Clickable/hoverable regions with typed events and highlight system |
Installation
- Open Window > Package Manager
- Click + > Add package from git URL...
- Enter:
https://github.com/LightSideMeowshop/unitext.git#1.0.0
Quick Start
- Select any GameObject with RectTransform
- Add Component > UniText
- Type text — it works. Any language, any direction.
var uniText = gameObject.AddComponent<UniText>();
uniText.FontStack = myFontStack;
uniText.Appearance = myAppearance;
uniText.Text = "Hello, World!";
uniText.Text = "مرحبا بالعالم"; // Arabic
uniText.Text = "Mixed: Hello עולם World"; // BiDi
uniText.Text = "👨👩👧👦🇯🇵"; // Emoji
Supported Platforms
| Platform | Architectures |
|---|---|
| Windows | x86, x64, ARM64 |
| macOS | x64, Apple Silicon |
| Linux | x64 |
| Android | ARMv7, ARM64, x86, x64 |
| iOS | ARM64 |
| WebGL | 2.0 |
Documentation
License
UniText 1.0 is free and open-source under the License.
[!TIP] Discord is the primary channel for questions, bug reports, help and discussion across LightSide. Email: [email protected].
Third-Party Software
UniText includes the following open-source libraries in its native plugin. See Third-Party Notices.txt for full license texts.
| Library | License |
|---|---|
| HarfBuzz | Old MIT License |
| FreeType | FreeType License |
| Blend2D | Zlib License |
| Zstandard | BSD-3-Clause |
| zlib | Zlib License |
| libpng | PNG Reference Library License |
Default fonts (Noto Sans, Noto Sans Arabic, Noto Sans Hebrew) — SIL Open Font License v1.1. Thai word segmentation dictionary — derived from ICU, Unicode License V3.
探索相关项目
加载中…