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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5MDU0NTYsIm5iZiI6MTcxOTkwNTE1NiwicGF0aCI6Ii8xNTQ0OTM5MjkvMzAwOTMwMzEyLWRmNTljOWMxLTg0ZmMtNGUwMy05ZTI4LThjNTIwNzYyNmY0ZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzAyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwMlQwNzI1NTZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lMDAyY2EzYmVjYzdhNzQ3MjljZjQwOTk1MmY5NmY5YWE0ZThlYTU4YjljZGMxOTc0MzI3NzAwNDhhYjRmMDE0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.ODsaznn39kDtFKBqMgkY0KMroq1RgSO6xYUwfLao3l0)
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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5MDU0NTYsIm5iZiI6MTcxOTkwNTE1NiwicGF0aCI6Ii8xNTQ0OTM5MjkvMzAwOTIzNDcyLWYxMGI5N2QzLTVkNGItNDA4MC1hNjcxLWI0YjQ2NGM4Mjc5Ni5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzAyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwMlQwNzI1NTZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mMTg1Mzc5YzhhYWM1YTFlNThkYzE0YmY1MThjYzIxZTE3YmJjYjY1NGViNTA3ZGMyMDMwMDA5YWU2YzVkNTZjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.J3hFeuDi337dil5A9qX3JNOVRjbB29SEYkRUmuHVHR8)
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