friction2d / friction

Friction Graphics
https://friction.graphics
GNU General Public License v3.0
295 stars 15 forks source link

Can't use accents in text #254

Closed thiagochaves closed 1 month ago

thiagochaves commented 1 month ago

I tried to add an accented letter to a text, but the text input ignores the accent. Accented letters in portuguese: á, é, í, ó, ú, â, ê, ô, ã. None of these can be input in the text field, although we can past these letters there.

rodlie commented 1 month ago

Confirmed, I'm so used to copy-paste that I didn't notice the issue. Thanks for the report :+1:

rodlie commented 1 month ago

Actually, no. On Linux it works, are you using Windows?

rodlie commented 1 month ago

It's the release builds it seems, my local build works fine. Probably something missing in Qt.

rodlie commented 1 month ago

For my reference: https://stackoverflow.com/questions/61444320/what-are-the-configure-options-for-qt-that-enable-dead-keys-usage

thiagochaves commented 1 month ago

Linux Mint 21, using the "Friction-0.9.6.1-x86_64.AppImage".

https://github.com/user-attachments/assets/0ba63e41-e48e-4167-ada5-e6a7c14f3b86

rodlie commented 1 month ago

Thanks.

I have identified the problem, it's with the included libxkbcommon library.

Workaround:

  1. Extract the appimage: ./Friction-0.9.6.1-x86_64.AppImage --appimage-extract
  2. Remove libxkbcommon: rm squashfs-root/usr/lib/libxkbcommon*
  3. Run from folder: cd squashfs-root && ./AppRun
rodlie commented 1 month ago

Fixed, snapshot available: https://sourceforge.net/projects/friction/files/snapshots/0.9.6.2-575020b2/

thiagochaves commented 1 month ago

Excellent, thanks a lot!