Skip to content

Commit ca78f61

Browse files
committed
Docs
1 parent 1470e8d commit ca78f61

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

README.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,26 @@
1-
# Unity3D.ThaiFontAdjuster
2-
Utility to render Thai text correctly in Unity3D, especially for positioning tone mark (ก์ กิ์).
1+
# ThaiFontAdjuster
2+
3+
Unity3D font renderer lacks support for
4+
[GPOS and GSUB](https://www.microsoft.com/typography/otspec/gpos.htm).
5+
Because Thai font heavily depends on these features, rendered image looks ugly without them.
6+
7+
This library gives workaround to render Thai font almost correctly.
8+
Following image shows differences between results from original Unity3D and this library.
9+
Position of tone mark, upper vowel and lower vowel would be adjusted by surrounding characters.
10+
11+
![Features](https://raw.githubusercontent.com/SaladbowlCreative/Unity3D.ThaiFontAdjuster/master/doc/Features.png)
12+
13+
## Where can I get it?
14+
15+
Visit [Release](https://github.com/SaladbowlCreative/Unity3D.ThaiFontAdjuster/releases)
16+
page to get latest ThaiFontAdjuster unity-package.
17+
18+
## Limitation
19+
20+
- ThaiFontAdjuster only can handle specific fonts.
21+
- Font should have extended glyphs from U+F700 to U+F71A providing various position of Thai characters.
22+
- [NECTEC National Fonts](http://www.nectec.or.th/pub/review-software/font/national-fonts.html) (Garuda, Loma, Kinnari, Norasi) already provide it.
23+
- Extended NotoSansThai-Regular for being supported is included in this package.
24+
- Adjusting position is not same as true-type rendering with GPOS and GSUB support.
25+
- This library adjusts position of glyph at best with limited extended set of character.
26+
But without GPOS, ideal positioning is impossibe.

0 commit comments

Comments
 (0)