Specifying system fonts in config.h?

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

    Specifying system fonts in config.h?

    On Linux I want to use the Terminus font on my ToME1 mod project. I'm using the XAW interface by default because X11 segfaults mysteriously on Debian Squeeze... No matter what I put in DEFAULT_X11_FONT in config.h, though, I get something like

    Code:
    Couldn't find font 'foo'
    Trying fixed
    And the fixed font is unfortunately tiny and unreadable. Anyone know how to properly specify a system font as DEFAULT_X11_FONT?
  • Therem Harth
    Knight
    • Jan 2008
    • 926

    #2
    Figured it out... Use xfontsel (because XAW can't do Truetype fonts). So terminus 12 is

    Code:
    #define DEFAULT_X11_FONT		"-*-terminus-*-*-*-*-*-120-*-*-*-*-*-*"
    Groovy.

    Comment

    • Therem Harth
      Knight
      • Jan 2008
      • 926

      #3
      Err, wait a minute that doesn't actually work. It doesn't give the error any more, but still uses the Fixed font. Any help?

      Comment

      • chris
        PosChengband Maintainer
        • Jan 2008
        • 702

        #4
        Originally posted by Therem Harth
        Err, wait a minute that doesn't actually work. It doesn't give the error any more, but still uses the Fixed font. Any help?
        Stab in the dark (I'm on Windoze these days), but create an executable script like so (obviously, not running hengband, though, and using whatever font you prefer)
        Code:
        export ANGBAND_X11_FONT='-*-courier-bold-r-normal--24-*-*-*-m-*-iso8859-1'
        ./hengband -g -- -n1&

        Comment

        • Therem Harth
          Knight
          • Jan 2008
          • 926

          #5
          Thanks, but that doesn't work either; nor "TOME_X11_FONT."

          Comment

          • Therem Harth
            Knight
            • Jan 2008
            • 926

            #6
            Yeah, ANGBAND_X11_FONT only works for X11 mode, not XAW.

            Comment

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