Menu

Is there an easy way to modify the font and size definition for Xnedit's menu?

SweetTyler
2025-03-20
2025-03-20
  • SweetTyler

    SweetTyler - 2025-03-20

    I understand that I can use the X resource for this, but is it possible to modify the source code in just a few places?
    Thank you!

     
  • Pyrphoros

    Pyrphoros - 2025-03-20

    You can adjust the fonts in nedit.c, line 176 - 180

    "*defaultRT.fontType:       FONT_IS_XFT",
    "*defaultRT.fontName: "     NEDIT_XFT_DEFAULT_FONT,
    "*defaultRT.fontSize:       9",
    "*fixedRT.fontType:         FONT_IS_XFT",
    "*fixedRT.fontName:         Monospace",
    "*fixedRT.fontSize:         9",
    

    The defaultRT rentertable is used for most Motif widgets, like menus, buttons or labels. fixedRT is used by textfields.

     
  • SweetTyler

    SweetTyler - 2025-03-20

    @pyrphoros Thank you so much!

     

Log in to post a comment.

MongoDB Logo MongoDB