File: README.Debian

package info (click to toggle)
dxvk 2.7.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 13,224 kB
  • sloc: cpp: 123,108; ansic: 76,058; sh: 545; python: 174; makefile: 81
file content (22 lines) | stat: -rw-r--r-- 775 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Generating dxvk_hud_font.cpp

dxvk_hud_font.cpp is not generated at build time, but this repository
contains everything that is needed to re-generate should it be needed.

1. Launch debian/missing-source/font-texture-generator/index.html in
   a browser.

2. Select the data format: "C".

3. Save the provided image, and convert it to C:
    $ convert image.png image.h

4. Insert the generated image code in dxvk_hud_font.cpp as
   const uint8_t g_hudFontImage[].

5. Append the text generated by font-texture-generator to
   dxvk_hud_font.cpp, excluding the last constant.

6. Adapt the last constant to the following signature and append it
   to dxvk_hud_font.cpp.tmpl:
    - const HudFont g_hudFont = { int, int, int, int, int, int, g_hudFontGlyphs, g_hudFontImage };