2
0

fonts.json 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {
  2. // Original HoMM 3 bitmap fonts
  3. // Stored in H3Bitmap.lod with fnt extension
  4. // Warning: Do not change number of entries in this list
  5. "bitmap" :
  6. [
  7. "BIGFONT", // Mostly used for window titles
  8. "CALLI10R", // Only in World View menu
  9. "CREDITS", // Only in Credits menu
  10. "HISCORE", // Only in High Scores menu
  11. "MEDFONT", // Some titles
  12. "SMALFONT", // Most of the messages
  13. "TIMES08R", // Unused in VCMI
  14. "TINY", // Some text
  15. "VERD10B" // Unused in VCMI
  16. ],
  17. // True type replacements
  18. // Should be in format:
  19. // <replaced bitmap font name, case-sensetive> : <true type font description>
  20. // "file" - file to load font from, must be in data/ directory
  21. // "size" - point size of font. Can be defined in two forms:
  22. // a) single number, e.g. 10. In this case, game will automatically multiply font size by upscaling factor when xBRZ is in use,
  23. // so xbrz 2x will use 20px, xbrz 3x will use 30px, etc
  24. // b) list of scaling factors for each scaling mode, e.g. [ 10, 16, 22, 26]. In this case game will select point size according to xBRZ scaling factor
  25. // so unscaled mode will use 10px, xbrz2 will use 16px, and xbrz3 will use 22
  26. // "style" - italic and\or bold, indicates font style
  27. // "outline" - if set, black shadow will be generated around entire text (instead of only bottom-right side)
  28. // "noShadow" - if set, this font will not drop any shadow
  29. "trueType":
  30. {
  31. "BIGFONT" : { "file" : "NotoSerif-Bold.ttf", "size" : [ 18, 38, 57, 76] },
  32. "CALLI10R" : { "file" : "NotoSerif-Bold.ttf", "size" : [ 12, 24, 36, 48] }, // TODO: find better matching font? This is likely non-free 'Callisto MT' font
  33. "CREDITS" : { "file" : "NotoSerif-Black.ttf", "size" : [ 22, 44, 66, 88], "outline" : true },
  34. "HISCORE" : { "file" : "NotoSerif-Black.ttf", "size" : [ 18, 36, 54, 72], "outline" : true },
  35. "MEDFONT" : { "file" : "NotoSerif-Bold.ttf", "size" : [ 13, 26, 39, 52] },
  36. "SMALFONT" : { "file" : "NotoSerif-Medium.ttf", "size" : [ 11, 22, 33, 44] },
  37. "TIMES08R" : { "file" : "NotoSerif-Medium.ttf", "size" : [ 8, 16, 24, 32] },
  38. "TINY" : { "file" : "NotoSans-Medium.ttf", "size" : [ 9, 18, 28, 38], "noShadow" : true }, // The only H3 font without shadow
  39. "VERD10B" : { "file" : "NotoSans-Medium.ttf", "size" : [ 13, 26, 39, 52] }
  40. }
  41. }