Antialiased Nedit, UTF8 now a possibility
Dušan Peterc <[email protected]>
| Newsgroups | gmane.editors.nedit.user |
|---|---|
| Message-ID | <[email protected]> |
Hello nedit developers! If some of you are using OpenMotif 2.3 or later, you can quickly try nedit with AA fonts using the following command: nedit -xrm "*renderTable: rt" -xrm "*rt*fontType: FONT_IS_XFT" -xrm "*rt*fontName: Sans" -xrm "*rt*fontSize: 10" Probably there is a simpler way of writing this, but it is good enough for trial. Most of the interface works OK, actually all pure Motif widgets work. I hope this will raise the interest of somebody willing to do the remaining 10% (or is it 50% ?). The text in the main window is not antialiased, and the text in the help window. I have converted my Motif applications into antialiased fonts and UTF8, as OpenMotif's implementation of Antialiased fonts only supports UTF8, not iso8859-x encodings. Actually, some UTF8 <-> isoXXXX encoding is probably necessary in such an editor, just like kwrite has it. Probably it should be handled in a similar way as DOS / UNIX CR/LF is handled now, where UTF8 would be the inner display mode, and various input encodings would be converted by iconv() library on input and on output (if the edited file would be in an encoding other than (UTF8). I think that nedit would remain a popular editor for the next 15 years, if only it had support for for antialiased fonts and UTF8. Many users and/or programmers suggested dropping Motif in favor of a more modern toolkit. Many times Motif was blamed for not providing this or that. Now Motif AA fonts and UTF8 it, but nedit is unable to use it. Isn't that sad? I know there will be many users who will say that their old platform does not support OpenMotif. I think that with OpenSolaris, even SUN users can use OpenMotif, as kernel is open source. The case of die hard DEC users should be handled by compile options and ifdefs. Let me know if this is of interest to anyone, and if I can help with any hints or debugging the new developments. My knowledge of inner working of Motif is minimal, I am only an application developer. Dušan Peterc http://www.arahne.si P.S. You can check my web site to see that Motif application can quite modern, if you use antialiased fonts and color icons. http://www.arahne.si/colorsPantone.png http://www.arahne.si/tutorial10-09.png http://www.arahne.si/tutorial10-20.png Not the ugly blue in the face Motif that the motif haters love to hate. -- NEdit Discuss mailing list - [email protected] http://www.nedit.org/mailman/listinfo/discuss