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

badly displayed font in active tab #128

Closed sebqas closed 10 months ago

sebqas commented 10 months ago

when I set the font by the X resource:

nedit*fontList: -*-helvetica-medium-r-*-17-*-*-*-*-*-iso10646-1

the filename in active tab is not properly displayed active-tab-2 active-tab-1 (with default setting is OK) I have tried many other fonts but it looks the same

unixwork commented 10 months ago

You also have to specify a bold font, for example:

nedit*fontList: -*-helvetica-medium-r-*-17-*-*-*-*-*-iso10646-1,-*-helvetica-bold-r-normal-*-17-*-*-*-*-*-iso8859-1=BOLD

Alternatively, instead of using X11 bitmap fonts, you could also use truetype fonts:

nedit*.renderTable: rt
nedit*.renderTable.rt.fontName: Sans
nedit*.renderTable.rt.fontSize: 10
nedit*.renderTable.rt.fontType: FONT_IS_XFT
sebqas commented 10 months ago

You also have to specify a bold font, for example:

nedit*fontList: -*-helvetica-medium-r-*-17-*-*-*-*-*-iso10646-1,-*-helvetica-bold-r-normal-*-17-*-*-*-*-*-iso8859-1=BOLD

thanks, it works, but I need in the font with unicode, I have installed bold version of this font

-*-helvetica-bold-r-*-*-17-*-*-*-*-*-iso10646-*

but cant use it here, why ?

Alternatively, instead of using X11 bitmap fonts, you could also use truetype fonts:

nedit*.renderTable: rt
nedit*.renderTable.rt.fontName: Sans
nedit*.renderTable.rt.fontSize: 10
nedit*.renderTable.rt.fontType: FONT_IS_XFT

that is much better, but how can I know that such resource was available ? it is not listed in the xnedit Help menu

unixwork commented 10 months ago

Don't know why the bold -*-helvetica-bold-r-*-*-17-*-*-*-*-*-iso10646-* is not working. It is not really related to xnedit, this is more an X11 or motif issue.

And you are right, the XFT based render table config in xnedit is not documented. This is a actually a feature of the motif toolkit, but it would make sense to add this to the xnedit documentation.

sebqas commented 10 months ago

I don't miss bitmap fonts since I have truetypes :) thanks, again