Home Download Buy Blog Forum Support

Font display issue with Meslo LG

Font display issue with Meslo LG

Postby SeanWcom on Wed Apr 18, 2012 2:45 pm

Hi all, I may be the only person who's seen this problem - and it's not really so much a problem as just something I wanted to bring up in case there is a larger font rendering problem in ST2. Take a look at the screenshot below:

Image

On the left, size 10 "Meslo LG M DZ". On the right, size 9. You can really see how the guidelines slowly shift (or rather the text does) the more you indent.

I also threw together a screencast showing the issue here: http://www.screencast.com/t/j2lLIt9us

@quodlibet has helped me test this out in another thread, but we were getting off topic and the original problem in that thread was resolved. So I wanted to start a new thread and see if anyone else has any font rendering issues, or if anyone has any insight to this particular issue. That other thread (if you want to see our troubleshooting) is here: viewtopic.php?f=3&t=6937#p29389 (that will start you off at the right spot in the thread).

Here's a rundown of the testing done:
  • Reverted to default ST2
  • Tested in Linux, Win 7, and Win XP -- Linux displays fine, Windows does not
  • Downloaded Notepad++ and set the display to tab size 2, spaces, same font and size -- it displayed fine there which makes me think it's not a Windows rendering issue.

I think that's most of the info... let me know if anyone has any other ideas for troubleshooting.

Thanks!
Multiple selections... one of my favorite ST2 features. View some noob-friendly screen casts here.
SeanWcom
 
Posts: 101
Joined: Wed Aug 03, 2011 1:31 am
Location: Georgia

Re: Font display issue with Meslo LG

Postby pete340 on Wed Apr 18, 2012 3:11 pm

SeanWcom wrote:Hi all, I may be the only person who's seen this problem - and it's not really so much a problem as just something I wanted to bring up in case there is a larger font rendering problem in ST2. Take a look at the screenshot below:

Image

On the left, size 10 "Meslo LG M DZ". On the right, size 9. You can really see how the guidelines slowly shift (or rather the text does) the more you indent.



Looks to me like the text is consistently lined up; the 'a' in each indented line is at the same position relative to the 'd' in the line above. My take on this is that it's the guidelines that are misaligned. I know there's size information embedded in fonts (that's the extent of my knowledge here), so it may be that the size information in the 9 pt font is incorrect.
pete340
 
Posts: 62
Joined: Mon Oct 10, 2011 9:45 pm

Re: Font display issue with Meslo LG

Postby SeanWcom on Wed Apr 18, 2012 5:19 pm

You are correct, the text IS properly aligned. But when looking at a huge file full of indented code, you rely on the guidelines for visual representation of nesting, etc.

So whether it's the font or the guidelines, I don't know. But I can state fairly certainly that it's not a font specific issue. As I mentioned above, the same font has been used on three different OS's. It worked fine in Linux, but not in Windows. However, in Windows, using Notepad++ it DOES work fine. That leads me to believe that it's not an OS issue or a font issue.
Multiple selections... one of my favorite ST2 features. View some noob-friendly screen casts here.
SeanWcom
 
Posts: 101
Joined: Wed Aug 03, 2011 1:31 am
Location: Georgia

Re: Font display issue with Meslo LG

Postby jps on Thu Apr 19, 2012 1:21 pm

This appears to be purely an indent guide rendering issue, rather than anything to do with font rendering (apart from the indent guides using the font metrics for sizing, of course)

Is your file indented with spaces or tabs? Does changing from one to the other effect the display of the indent guides?
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: Font display issue with Meslo LG

Postby SeanWcom on Fri Apr 20, 2012 1:28 am

@jps, I've got tab size set to two. In the screens above, I'm using spaces instead of tabs. If I switch to tabs (still at Tab Size 2), the guides are lined up perfectly.
Multiple selections... one of my favorite ST2 features. View some noob-friendly screen casts here.
SeanWcom
 
Posts: 101
Joined: Wed Aug 03, 2011 1:31 am
Location: Georgia

Re: Font display issue with Meslo LG

Postby jps on Fri Apr 20, 2012 2:22 am

Tabs and indent guides are drawn at tab width intervals, which is defined to be tab_size * width of 'm'. What you're seeing will happen if spaces and 'm' characters have different widths in the font. I should likely fix this.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 14 guests