Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Rendering Indic Scripts Correctly/Ligatures  (Read 352 times)

0 Members and 2 Guests are viewing this topic.

shinobhi

  • Newbie
  • *
  • Posts: 2
    • View Profile
Rendering Indic Scripts Correctly/Ligatures
« on: January 08, 2025, 12:46:51 am »
For context, this is ultimately related to the Pokemon SDK toolkit: https://pokemonworkshop.com/en/sdk.

I am attempting to add Telugu text to my game, and an issue I am running into is that "conjunct" characters are not linking together. For context, if I type స ్ క ా, this should render all together as స్కా. However, when I attempt to render text in the game, I get something like this:


I was directed to the SFML website as they said you guys would have further insight. I found a thread from thirteen years ago relating to the Arabic script, but wasn't able to find much insight there. How can I make it so that SFML consistently "links" the characters together as they should be linked?


eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11075
    • View Profile
    • development blog
    • Email
Re: Rendering Indic Scripts Correctly/Ligatures
« Reply #1 on: January 08, 2025, 10:02:19 am »
Complex text layouts aren't yet supported in SFML.

My goal is to get this into SFML 3.1 or 3.2 the latest. See also: https://github.com/SFML/SFML/issues/246

Does the Pokemon SDK use SFML?
I tried to find any referenced and only saw some for audio.
Official FAQ: https://www.sfml-dev.org/faq/
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

shinobhi

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Rendering Indic Scripts Correctly/Ligatures
« Reply #2 on: January 08, 2025, 06:26:01 pm »
I was told in the Discord server for support that SFML is what's used for text rendering in Pokemon SDK, yes.

Sad to hear that complex characters aren't yet supported in SFML. When might versions 3.1 or 3.2 be ready?

kojack

  • Sr. Member
  • ****
  • Posts: 353
  • C++/C# game dev teacher.
    • View Profile
Re: Rendering Indic Scripts Correctly/Ligatures
« Reply #3 on: January 09, 2025, 12:24:26 am »
Does the Pokemon SDK use SFML?
From the repository readme:
"We wrote a graphic engine called LiteRGSS using SFML, which allows a better mastering of the Graphic part of PSDK like adding Shaders, turning some graphic process to C++ side etc..."

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11075
    • View Profile
    • development blog
    • Email
Re: Rendering Indic Scripts Correctly/Ligatures
« Reply #4 on: January 09, 2025, 11:43:21 pm »
When might versions 3.1 or 3.2 be ready?
We just released SFML 3 and will certainly have 3.0.1 out in the next month(s), so it will be a bit.
No specific ETAs, but my personal goal is to get SFML 3.1 out in 2025.

"We wrote a graphic engine called LiteRGSS using SFML..."
Ah yes, it's in a separate repository.
Hmm... I guess they've written their on "rbSFML" then, given that rbSFML is stuck/archived in 2.3.2 land
Official FAQ: https://www.sfml-dev.org/faq/
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/