Getting X11 mode to work on all variants

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Therem Harth
    Knight
    • Jan 2008
    • 926

    Getting X11 mode to work on all variants

    I just tried compiling and running Oangband using X11 instead of SDL, and got this on running.

    Code:
    ./oangband: Couldn't load the requested font. (8x16x)
    The requested font does in fact exist. What's going on?
  • Nick
    Vanilla maintainer
    • Apr 2007
    • 9647

    #2
    X11 doesn't use the Angband fonts - it uses system fonts.

    Your options include using 1.1.0 instead of 1.1.0u, or editing main-x11.c to change the default font name (just 8x16 should work, or whatever else you like).
    One for the Dark Lord on his dark throne
    In the Land of Mordor where the Shadows lie.

    Comment

    • artes
      Adept
      • Jun 2011
      • 113

      #3
      I have the exact same problem, in FAAngand 1.2.1 on Linux. What should I write in main-x11.c?

      I mean after compiling, when I try to run the game, I get the error message:
      src/faangband: Couldn't load the requested font. (8x16x)

      Comment

      • Nick
        Vanilla maintainer
        • Apr 2007
        • 9647

        #4
        The problem is that config.h is really messed up. The easiest thing to do is edit the DEFAULT_FONT_ values in config.h to something sensible, like
        Code:
        /*
         * OPTION: Default font (when using X11).
         */
        #define DEFAULT_X11_FONT		"9x15"
        
        
        /*
         * OPTION: Default fonts (when using X11)
         */
        #define DEFAULT_X11_FONT_0		"10x20"
        #define DEFAULT_X11_FONT_1		"9x15"
        #define DEFAULT_X11_FONT_2		"9x15"
        #define DEFAULT_X11_FONT_3		"5x8"
        #define DEFAULT_X11_FONT_4		"5x8"
        #define DEFAULT_X11_FONT_5		"5x8"
        #define DEFAULT_X11_FONT_6		"5x8"
        #define DEFAULT_X11_FONT_7		"5x8"
        One for the Dark Lord on his dark throne
        In the Land of Mordor where the Shadows lie.

        Comment

        • artes
          Adept
          • Jun 2011
          • 113

          #5
          That fixed the problem. Now it works fine. Thank you. This game is awesome,

          Comment

          Working...
          😀
          😂
          🥰
          😘
          🤢
          😎
          😞
          😡
          👍
          👎