processing / processing

Source code for the Processing Core and Development Environment (PDE)
http://processing.org
Other
6.47k stars 1.51k forks source link

When typing a void function the cursor gets misaligned #5693

Open TheErrorScript opened 5 years ago

TheErrorScript commented 5 years ago
## Description

When I use void before any draw, setup, or settings the cursor gets misaligned

Expected Behavior

It is expected to have the cursor to be in the correct position after typing void but gets misaligned somehow.

Current Behavior

The cursor gets misaligned after typing void

screenshot 2018-10-30 08 57 21

Steps to Reproduce

  1. type void as usual
  2. start typing setup
  3. once you press the P watch the cursor go out of it's way

Your Environment

gohai commented 5 years ago

This doesn't happen on macOS. Guessing this is related to the code-completion feature that is being tested. You could try setting pdex.completion.trigger=false in preferences.txt and see if this makes this artifact go away.

TheErrorScript commented 5 years ago

I just looked at it and it is already false, I still have no idea why it does it.

GRsni commented 5 years ago

I can't seem to reproduce the bug either. Neither having pdex.completion.trigger=true nor false doesn't change the behaviour of the IDE.

vermaditya1999 commented 5 years ago

I have also experienced this alignment problem before. Don't know what triggered it. Currently, I am able to reproduce this by setting my font to MS Gothic (pdex.completion.trigger is false). @TheErrorScript may I know what font are you using?

GRsni commented 5 years ago

Using MS Gothic the cursor missaligned with both pdex.completion.trigger=false and true. After further testing, Lucida Console, MingLiU-ExtB, MingLiU-HKSCS-ExtB, NSimSun, OCR A Extended, SimSun, SimSun-ExtB, all produce the same bug. Maybe it's due to a difference between character size and character symbol size.