unixwork / xnedit

A fast and classic X11 text editor, based on NEdit, with full unicode support and antialiased text rendering.
Other
83 stars 11 forks source link

Block selection (cntrl+select) region not rectangular or has offset #135

Closed dpdoughe closed 7 months ago

dpdoughe commented 7 months ago

Cntrl+Select (block selection) is not working in Xnedit. There appear to be some strange offsets between the cursor and the dragged selection areas making the resulting selection region not appear rectangular.

image

unixwork commented 7 months ago

It only works if you are using a monospaced font.

dpdoughe commented 7 months ago

Ah. It seems that maybe the fonts preferences are not getting saved to ~/.xnedit/nedit.rc when edited through Preferences->Text Fonts... dialog

nedit.textFont: -adobe-courier-medium-r-normal--12-120-75-75-m-70-iso10646-1
nedit.boldHighlightFont: -adobe-courier-bold-r-normal--12-120-75-75-m-70-iso10646-1
nedit.italicHighlightFont: -adobe-courier-medium-o-normal--12-120-75-75-m-70-iso10646-1
nedit.boldItalicHighlightFont: -adobe-courier-bold-o-normal--12-120-75-75-m-70-iso10646-1

When I try to save Fira Code Retina, in my preferences (Save Defaults...)

image

the changes are not reflected in ~/.xnedit/nedit.rc even though I can use Fira font in Xnedit until I close the application. Upon reopening the application it reverts to adobe courier.

unixwork commented 7 months ago

How to you open the font settings? There is Preferences -> Text Fonts... and Preferences -> Default Settings -> Text Fonts....

You have to go to the Default Settings sub menu and change settings there.

dpdoughe commented 7 months ago

Ah that was it! Good now. Will close this issue. Thanks again!