diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-04-07 09:58:19 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-04-14 22:32:26 +0000 |
commit | 3a776e1e30bc6d45847c9c7614788417a0a78097 (patch) | |
tree | 6d26e78db83389fd7fb850be2fdfaef2b98ab32b | |
parent | 639d4f17218568afd6494dbd807bebb2beb9d6b3 (diff) |
nixosTests.cage: fix OCR properly
The underlying problem with OCR in this test has been that the only
font installed was DejaVu Sans, a proportional font, which xterm would
try to render as monospace. This produced very broken looking text,
which the OCR understandably had trouble with. With an actual
monospace font installed, there are no more problems and we don't need
the hacks.
-rw-r--r-- | nixos/tests/cage.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nixos/tests/cage.nix b/nixos/tests/cage.nix index 39c8d0441b6d..db1b7854673d 100644 --- a/nixos/tests/cage.nix +++ b/nixos/tests/cage.nix @@ -10,11 +10,13 @@ import ./make-test-python.nix ({ pkgs, ...} : { imports = [ ./common/user-account.nix ]; + + fonts.fonts = with pkgs; [ dejavu_fonts ]; + services.cage = { enable = true; user = "alice"; - # Disable color and bold and use a larger font to make OCR easier: - program = "${pkgs.xterm}/bin/xterm -cm -pc -fa Monospace -fs 24"; + program = "${pkgs.xterm}/bin/xterm"; }; # Need to switch to a different GPU driver than the default one (-vga std) so that Cage can launch: |