Facing Issue In Rendering Unicode Fonts #302
Unanswered
Anish-Someashwara
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Thanks, unfortunately there are many details of Indic text shaping that I have not yet implemented. It's quite complex and I don't know when I'll be able to get to it. Sorry I don't have a better answer for you. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Created #303 to track this. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey @lojjic firstly thanks for this amazing work, it’s working great.
For past few days, I was working to add Unicode Fonts in my threejs project using troika-three-text.
I am using troika-three-text for some native languages of India, I have tried it for unicode fonts it’s working, but for some character and ligature its not rendering properly and not looking same as the original text. I have attached some picture Reference below:
Example: 1
![Hindi-Pblm](https://private-user-images.githubusercontent.com/154493929/300930312-df59c9c1-84fc-4e03-9e28-8c5207626f4e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NDkzMDQsIm5iZiI6MTczOTY0OTAwNCwicGF0aCI6Ii8xNTQ0OTM5MjkvMzAwOTMwMzEyLWRmNTljOWMxLTg0ZmMtNGUwMy05ZTI4LThjNTIwNzYyNmY0ZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQxOTUwMDRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05NTU4NzZkMzBmMWFlZjA5ZWViZWE0YzU5MTNjOTBkM2M2MDQxM2Y1M2I4MTZmNTc2ODNjYzhhNTdiNmM0MTkyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.x4T6yLQqTCuFIlQd7IBqoyL03ptk8UO1Kv4WfYzkxyw)
Font Used: Devanagiri
Original Text: दिव्या
Troika Rendered Text:
Example: 2
![pnbi-Pblm](https://private-user-images.githubusercontent.com/154493929/300923472-f10b97d3-5d4b-4080-a671-b4b464c82796.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NDkzMDQsIm5iZiI6MTczOTY0OTAwNCwicGF0aCI6Ii8xNTQ0OTM5MjkvMzAwOTIzNDcyLWYxMGI5N2QzLTVkNGItNDA4MC1hNjcxLWI0YjQ2NGM4Mjc5Ni5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQxOTUwMDRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zNDZlMzIzNGE2ZDYwZTMwYTNiZmM1ZGM3OTE2MTY5MDg1MjY2ZDBmYjg2NjM3NDk3MzNjNDNlYzA0MmIyMzU2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.IdmkyE3upPlbwMEd1fxsSwsFCnoxGBdRQ9xuDXxwIi0)
Font Used: Gurmukhi
Original Text: ਵਿਦਿਆਰਥੀ ਕਾਲ ਮਨੁੱਖ ਦੇ ਭਾਵੀ ਜੀਵਨ ਦੀ ਬੁਨਿਆਦ ਹੁੰਦਾ ਹੈ, ਕਿਉਂਕਿ ਨੀਂਹ ਜਿੰਨੀ ਮਜ਼ਬੂਤ ਅਤੇ ਪੱਕੀ ਹੋਵੇਗੀ, ਉਸ ਉੱਤੇ ਉੱਨਾ ਹੀ ਮਜ਼ਬੂਤ ਮਹਲ ਉਸਾਰਿਆ ਜਾ ਸਕਦਾ ਹੈ।
Troika Rendered Text:
So, These are the issues I am facing, what can I do for this?
Do I need to specify the ligature sequences, will it work?
And one more thing i want to ask is, can we customize the glyphs, Like I am making a game for kids, so I want to make the font design to look a little cartoon and comic style.
Thanks In Advance
Beta Was this translation helpful? Give feedback.
All reactions