New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor position miscalculated when input and editor fonts differ #3345

Closed
dgraham opened this Issue Aug 20, 2014 · 4 comments

Comments

Projects
None yet
5 participants
@dgraham
Member

dgraham commented Aug 20, 2014

The cursor position in input fields is miscalculated when the editor font is not the same as the input element font. This screenshot is with an editor font of Source Code Pro and input font of Lucida Grande, provided by the Unity UI theme.

cmd-t-cursor

The stock Atom Light theme works fine because the fonts are the same in both the editor and input fields.

@benogle

This comment has been minimized.

Show comment
Hide comment
@benogle

benogle Aug 20, 2014

Contributor

The issue is that the measurement doesnt currently work well for var width fonts.

Contributor

benogle commented Aug 20, 2014

The issue is that the measurement doesnt currently work well for var width fonts.

@leek

This comment has been minimized.

Show comment
Hide comment
@leek

leek Aug 26, 2014

I was having this same issue (same theme), so I applied this little quick hack to my stylesheet until this is fixed:

.editor.mini {
    font-family: 'Source Code Pro';
}

leek commented Aug 26, 2014

I was having this same issue (same theme), so I applied this little quick hack to my stylesheet until this is fixed:

.editor.mini {
    font-family: 'Source Code Pro';
}
@kschmidtdev

This comment has been minimized.

Show comment
Hide comment
@kschmidtdev

kschmidtdev Sep 20, 2014

Lucida Grande completely fails using Atom, any ETA for supporting it properly?

kschmidtdev commented Sep 20, 2014

Lucida Grande completely fails using Atom, any ETA for supporting it properly?

@benogle

This comment has been minimized.

Show comment
Hide comment
@benogle

benogle Oct 26, 2015

Contributor

This was fixed by #8811

Contributor

benogle commented Oct 26, 2015

This was fixed by #8811

@benogle benogle closed this Oct 26, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment