DeltaEscher / editra

Automatically exported from code.google.com/p/editra
Other
0 stars 0 forks source link

Deep indentation with spaces causes columns of fixed-width font not to be aligned #479

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
To reproduce:
1. Make a file with deep indentation using spaces in it, like this one:
  aVeryLongName = [tadaa
                                   , tadaa
                                   , tadaa]
2. You may have to try this several times with different text, because this 
bug does not always occur.
3. Notic

Since I am using a fixed-width font, the character columns should be 
aligned, but some of them are partway off, by anywhere from a few pixels 
to a half-column to a point where I need to look at it in another editor to 
make sure that it's aligned right.

I am using the Editra v0.5.32 binary on a Mac.

Original issue reported on code.google.com by wyndc...@gmail.com on 12 Feb 2010 at 2:01

GoogleCodeExporter commented 8 years ago
Pretend that step 3 isn't there, and that the text in step one is properly 
aligned, like 
this:
aVeryLongName = [tadaa
              , tadaa
              , tadaa]

Original comment by wyndc...@gmail.com on 12 Feb 2010 at 2:06

GoogleCodeExporter commented 8 years ago
Gah, it didn't align right again. Oh well...

Original comment by wyndc...@gmail.com on 12 Feb 2010 at 2:06

GoogleCodeExporter commented 8 years ago
What font are you using?

Are you sure that it is a fixed width font?

What version of OSX are you on?

Thanks,

Cody

Original comment by CodyPrec...@gmail.com on 12 Feb 2010 at 2:24

GoogleCodeExporter commented 8 years ago
Also, if you turn whitespace on (View->Editor->Whitespace) and take a screenshot
would be an easy way to show what your seeing as the font in my webbrowser is 
most
likely different than what is in yours.

Thanks

Original comment by CodyPrec...@gmail.com on 12 Feb 2010 at 2:29

GoogleCodeExporter commented 8 years ago
Oh, the text I put in the post was just an example of the kind of indentation I 
was 
talking about; it wasn't intended to illustrate the problem.

I have attached a screenshot.

I'm on OSX Leopard (10.5).

Original comment by wyndc...@gmail.com on 13 Feb 2010 at 12:27

Attachments:

GoogleCodeExporter commented 8 years ago
Hi,

What fonts are you using?

It is possible that you have two different fonts set in your settings and that 
some
styles in the buffer may be using the other font.

See: Preferences=>Document=> Primary and Secondary Font

Please let me know what fonts you have set so that I can try to reproduce this 
on my
machine.

Thanks

Original comment by CodyPrec...@gmail.com on 13 Feb 2010 at 12:32

GoogleCodeExporter commented 8 years ago
I use Dejavu Sans Mono, size 12. I tried setting the primary and secondary 
fonts to be 
the same, but that did not fix the problem.

I just feel like saying that Editra is completely fantastic, and that it would 
be perfect as 
far as I can tell if not for this. :D

Original comment by wyndc...@gmail.com on 13 Feb 2010 at 1:36

GoogleCodeExporter commented 8 years ago
Hi,

I cant reproduce this using either the default or midnight stylesheet, with the
Monaco font (which is fixed width).

What stylesheet are you using? you may want to look in it to see if there are 
any
explicit font definitions other than %(primary) or %(secondary). Not sure in 
this
case but sometimes fonts that claim to be fixed width really are not

Original comment by CodyPrec...@gmail.com on 21 Feb 2010 at 9:28

GoogleCodeExporter commented 8 years ago
It has happened for me in multiple stylesheets, so I know that it's not the 
stylesheet 
that's causing the problem. The bug is extremely finnicky--it sometimes 
disappears 
after fiddling with some settings, and then it reappears.

I actually changed fonts from DejaVu Sans Mono to Inconsolata a few days ago, 
and I 
haven't seen the bug since, but it might appear sometime.

Original comment by wyndc...@gmail.com on 23 Feb 2010 at 1:04

GoogleCodeExporter commented 8 years ago
I am going to close this issue for now, as I believe that it is probably the 
font
that was at fault. I have seen that some "fixed width" fonts really are not 
fixed
width, and this would seem to be the case that is being seen here.

Original comment by CodyPrec...@gmail.com on 23 Feb 2010 at 1:20