AttorneyOnline / AO2-Client

An off-the-cuff courtroom drama simulator
https://aceattorneyonline.com
GNU General Public License v3.0
61 stars 58 forks source link

Mac: Using a comma makes the user force doublespace click, thus an extra space. #855

Open dyviacat opened 2 years ago

dyviacat commented 2 years ago

When typing a comma on client, it does not enter the space after the comma unless you double spacebar, thus causes an unnecessary space between clauses. It is very noticeable to other users and does not happen on Web.

If a user continues to click once and enter their message anyway, the message would just be entered like it was and the issue would not appear. This can be very unnecessary and misleading.

The first screenshot shows the issue and the second screenshot shows what it looks like if not double spaced.

Screen Shot 2022-08-14 at 8 43 45 PM Screen Shot 2022-08-14 at 8 49 19 PM

Steps to reproduce the behavior:

  1. Run Mac AO Client.
  2. Use a comma in a sentence.
  3. Press enter and see the issue.

Expected behavior: No unnecessary space between commas.

Version:

oldmud0 commented 2 years ago

this looks like a kerning issue (font issue). The space between a comma and a subsequent character is not being calculated correctly by Qt's font engine. I bet if the font is changed for this text box the problem will go away, or if you change a qt parameter to use a different font engine.

Salanto commented 2 months ago

Still relevant on recent builds?