Cannot enter graphical accents in a LineEdit exported to HTML

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ofrias

It looks like accented latin characters (á é í ó ú for example) cannot be typed in a LineEdit inside a project exported to HTML. It works OK in the development environment.

Any ideas? Do we have to configure something to fix this? Is this a bug?

I have exact same problem. my custom font supports latin extended and works on labels flawlessly. but with LineEdit typing not working. it changes them to another characters like ; or /

ULViDO | 2021-09-26 18:56

:bust_in_silhouette: Reply From: Calinou

Try using a custom DynamicFont for your GUI rather than the default project font (which is a bitmap font with a limited character set). You can specify a custom font to use in the Project Settings.

Thanks for your answer. It looks like the problem is not with the font itself because if we set an accented character as the LineEdit placeholder then it is correctly displayed. The problem is that you cannot type an accented character inside the HTML LineEdit (it is replaced by the character without the accent). You can reproduce the problem here:


We are using Kenney Future Narrow font which has accented characters.

ofrias | 2021-02-08 17:25

It seems that the problem are the dead keys, which are used to type accented characters, and apparently they are being ignored by the HTML LineEdit. Any idea about how to workaround this?

ofrias | 2021-02-11 17:28