๐ŸŽฎ Unity Study/Unity

[Unity] TextMeshPro ํฐํŠธ์ถ”๊ฐ€ ๋ฐ ํ•œ๊ธ€์ž…๋ ฅ

ibelieveinme 2022. 11. 9. 01:13
728x90

 

1. ์›ํ•˜๋Š” ํฐํŠธ ๋‹ค์šด๋กœ๋“œํ•ด์„œ  Asset ํด๋”์— ์˜ฎ๊ฒจ๋†“๊ธฐ.

https://hangeul.naver.com/font

 

๋„ค์ด๋ฒ„ ๊ธ€๊ผด ๋ชจ์Œ

๋„ค์ด๋ฒ„๊ฐ€ ๋งŒ๋“  150์—ฌ์ข…์˜ ๊ธ€๊ผด์„ ํ•œ๋ฒˆ์— ๋งŒ๋‚˜๋ณด์„ธ์š”

hangeul.naver.com

 

2. Unity์—์„œ Window > TextMeshPro > Font Asset Creator ํด๋ฆญ ํ›„ ์…‹ํŒ… ๊ฐ’ ์ž…๋ ฅ.

1) SourceFontFile : ๋‹ค์šด๋ฐ›์€ ํฐํŠธ

2) Sampling Point Size : ์ž๋™ ์…‹ํŒ… or ์‚ฌ์ด์ฆˆ ์ง€์ •

3) Padding : ๊ธ€์ž ํŒจ๋”ฉ๊ฐ’

4) PackingMethod : Fast

5) Atlas Resolution : ์‚ฌ์ด์ฆˆ ๋„‰๋„‰ํ•˜๊ฒŒ 4096์œผ๋กœ

6) CharacterSet : CustomRange

7) Character Sequence์— ๋ฒ”์œ„ ์ž…๋ ฅ : 32-126,44032-55203,12593-12643,8200-9900

 

3. GenerateFontAtlas ํด๋ฆญ ํ›„ ์•„๋ž˜์— font atlas ์ƒ์„ฑ๋œ ๊ฒƒ ํ™•์ธ

 

4. Save๋ฒ„ํŠผ ํด๋ฆญํ•˜๋ฉด .assetํ˜•ํƒœ์˜ ํฐํŠธ๊ฐ€ ์ถ”๊ฐ€๋จ.

 

5. ํฐํŠธ ํ•„์š”ํ•œ ๊ณณ์— asset ์ถ”๊ฐ€ํ•˜๋ฉด ๋—.

728x90