Recent

Author Topic: [SOLVED] How do I correct this?  (Read 416 times)

linuxbob

  • New member
  • *
  • Posts: 8
[SOLVED] How do I correct this?
« on: June 16, 2022, 01:37:19 pm »
Hello all,

I've done a search on the forum for a solution and haven't found one yet. My editor window has suddenly started displaying the text in this manner. I have tried changing the font; the font does change but the new font also displays like this. I've also tried uninstalling and reinstalling Lazarus with no effect. I am on the latest version.

Suggestions are welcomed.

Thanks.
« Last Edit: June 16, 2022, 05:53:57 pm by linuxbob »

rvk

  • Hero Member
  • *****
  • Posts: 4947
Re: How do I correct this?
« Reply #1 on: June 16, 2022, 02:48:33 pm »
Check the settings under Editor > Display for Extra character spacing.
Maybe you set it at 2.

See attached image.

linuxbob

  • New member
  • *
  • Posts: 8
Re: How do I correct this?
« Reply #2 on: June 16, 2022, 03:18:02 pm »
Already checked that. Both extra spacing boxes are set to zero.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 8260
  • Debugger - SynEdit - and more
    • wiki
Re: How do I correct this?
« Reply #3 on: June 16, 2022, 03:26:48 pm »
Choose a monospaced font for the editor.

The editor can only display monospaced. If the font is not monospaced, the editor defines the mono-spaced-grid width as the width of the widest char it finds.

The editor does not look at any attributes of the font. It always verifies a few chars to ensure the font is monospaced.
Among those chars are W and M. But also the @ sign, which in many fonts is even wider than M or W.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 8260
  • Debugger - SynEdit - and more
    • wiki
Re: How do I correct this?
« Reply #4 on: June 16, 2022, 03:27:56 pm »
You can set char-spacing to a negative value.

Then your font may look more normal-ish. But some chars will overlap.....

jcmontherock

  • Full Member
  • ***
  • Posts: 143
Re: How do I correct this?
« Reply #5 on: June 16, 2022, 05:11:31 pm »
Probably, your text is in UTF-16 encoded.

rvk

  • Hero Member
  • *****
  • Posts: 4947
Re: How do I correct this?
« Reply #6 on: June 16, 2022, 05:43:27 pm »
Probably, your text is in UTF-16 encoded.
No, I think Martin was spot on. When you change to a proportionel font you get exactly this 'problem'/view.

I also thought about UTF-16 encoding but if that was the case, the line-numbers in the gutter would display normally (which they don't).

linuxbob

  • New member
  • *
  • Posts: 8
Re: How do I correct this?
« Reply #7 on: June 16, 2022, 05:50:20 pm »
Thanks everyone for your input. Switching to a monospace font did the trick.

 

TinyPortal © 2005-2018