font.cfg 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // To add your own fonts, create a seperate font file and execute like this:
  2. exec config/font_default.cfg // Must be executed! DO NOT MODIFY.
  3. exec config/font_monospace.cfg // Must be executed! DO NOT MODIFY.
  4. exec config/font_serif.cfg
  5. // Then, in that file, define the font. To do this, first define the font file.
  6. // See: ./docs/reference.xml#identifier_font for the command to do this.
  7. // Then, each font character.
  8. // See: ./docs/reference.xml#identifier_fontchar for the command to do this.
  9. // Once defined, you can use the command "setfont" to switch between fonts
  10. // See: ./docs/reference.xml#identifier_setfont
  11. // See the other font files for an example on how to define these fonts.
  12. // Note that the fonts are defined in the particular order shown in the comments.
  13. // You can also use the "TTF2Font" tool to assist you:
  14. // https://sourceforge.net/projects/bloodfrontier/files/Vault/TTF2Font/
  15. // DO NOT MODIFY THE BELOW
  16. // These are used for displaying the HUD, rather than fonts.
  17. // Changing these settings may leave AssaultCube unplayable.
  18. font huddigits "packages/misc/huddigits.png" 40 64
  19. fontskip 47
  20. fontchar 476 64 24 64 // /
  21. fontchar 4 64 40 64 // 0
  22. fontchar 52 64 40 64 // 1
  23. fontchar 100 64 40 64 // 2
  24. fontchar 148 64 40 64 // 3
  25. fontchar 196 64 40 64 // 4
  26. fontchar 244 64 40 64 // 5
  27. fontchar 292 64 40 64 // 6
  28. fontchar 340 64 40 64 // 7
  29. fontchar 388 64 40 64 // 8
  30. fontchar 436 64 40 64 // 9
  31. font serverquality "packages/misc/serverquality.png" 48 64
  32. fontskip 48
  33. fontchar 0 64 48 64 // 0 - "Unknown"
  34. fontchar 48 64 48 64 // 1 - "Very bad"
  35. fontchar 96 64 48 64 // 2 - "Bad"
  36. fontchar 144 64 48 64 // 3 - "Medium"
  37. fontchar 192 64 48 64 // 4 - "Good"
  38. fontchar 240 64 48 64 // 5 - "Very good"
  39. font bargraphs "packages/misc/bargraphs.png" 32 64
  40. fontskip 48
  41. fontchar 0 64 32 64 //0 [ ][ ]
  42. fontchar 32 64 32 64 //1 [x][ ]
  43. fontchar 64 64 32 64 //2 [ ][x]
  44. fontchar 96 64 32 64 //3 [x][x]
  45. fontchar 128 64 64 64 //4 [Black]
  46. fontchar 192 64 64 64 //5 [Green]
  47. fontchar 256 64 64 64 //6 [Yellow]
  48. fontchar 320 64 64 64 //7 [Red]
  49. font radaricons "packages/misc/radaricons.png" 64 64
  50. fontskip 65
  51. fontchar 0 0 64 64 //A red small triangle
  52. fontchar 64 0 64 64 //B red cross
  53. fontchar 128 0 64 64 //C red big triangle
  54. fontchar 192 0 64 64 //D red flag
  55. fontchar 0 64 64 64 //E blue small triangle
  56. fontchar 64 64 64 64 //F blue cross
  57. fontchar 128 64 64 64 //G blue big triangle
  58. fontchar 192 64 64 64 //H blue flag
  59. fontchar 0 128 64 64 //I green small triangle
  60. fontchar 64 128 64 64 //J green cross
  61. fontchar 128 128 64 64 //K green big triangle
  62. fontchar 192 128 64 64 //L yellow flag
  63. fontchar 0 192 64 64 //M red circle
  64. fontchar 64 192 64 64 //N blue circle
  65. fontchar 128 192 64 64 //O green circle