font.cfg 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // To add your own fonts, create a seperate font file and execute like this:
  2. persistidents 0
  3. exec config/font_default.cfg // Must be executed! DO NOT MODIFY.
  4. exec config/font_monospace.cfg // Must be executed! DO NOT MODIFY.
  5. exec config/font_serif.cfg
  6. // Then, in that file, define the font. To do this, first define the font file.
  7. // See: ./docs/reference.xml#identifier_font for the command to do this.
  8. // Then, each font character.
  9. // See: ./docs/reference.xml#identifier_fontchar for the command to do this.
  10. // Once defined, you can use the command "setfont" to switch between fonts
  11. // See: ./docs/reference.xml#identifier_setfont
  12. // See the other font files for an example on how to define these fonts.
  13. // Note that the fonts are defined in the particular order shown in the comments.
  14. // You can also use the "TTF2Font" tool to assist you:
  15. // http://sourceforge.net/apps/mediawiki/bloodfrontier/index.php?title=TTF2Font
  16. // DO NOT MODIFY THE BELOW
  17. // These are used for displaying the HUD, rather than fonts.
  18. // Changing these settings may leave AssaultCube unplayable.
  19. font huddigits "packages/misc/huddigits.png" 40 64
  20. fontskip 47
  21. fontchar 476 64 24 64 // /
  22. fontchar 4 64 40 64 // 0
  23. fontchar 52 64 40 64 // 1
  24. fontchar 100 64 40 64 // 2
  25. fontchar 148 64 40 64 // 3
  26. fontchar 196 64 40 64 // 4
  27. fontchar 244 64 40 64 // 5
  28. fontchar 292 64 40 64 // 6
  29. fontchar 340 64 40 64 // 7
  30. fontchar 388 64 40 64 // 8
  31. fontchar 436 64 40 64 // 9
  32. font serverquality "packages/misc/serverquality.png" 48 64
  33. fontskip 48
  34. fontchar 0 64 48 64 // 0 - "Unknown"
  35. fontchar 48 64 48 64 // 1 - "Very bad"
  36. fontchar 96 64 48 64 // 2 - "Bad"
  37. fontchar 144 64 48 64 // 3 - "Medium"
  38. fontchar 192 64 48 64 // 4 - "Good"
  39. fontchar 240 64 48 64 // 5 - "Very good"
  40. font bargraphs "packages/misc/bargraphs.png" 32 64
  41. fontskip 48
  42. fontchar 0 64 32 64 //0 [ ][ ]
  43. fontchar 32 64 32 64 //1 [x][ ]
  44. fontchar 64 64 32 64 //2 [ ][x]
  45. fontchar 96 64 32 64 //3 [x][x]
  46. fontchar 128 64 64 64 //4 [Black]
  47. fontchar 192 64 64 64 //5 [Green]
  48. fontchar 256 64 64 64 //6 [Yellow]
  49. fontchar 320 64 64 64 //7 [Red]
  50. persistidents 1