Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad rendering of font width and incomplete rendering of glyphs with pango font engine #60

Open
davethecipo opened this issue Aug 20, 2022 · 1 comment

Comments

@davethecipo
Copy link

Hi,
I'm trying to use this patched version of kmscon alongside the patched libtsm.
I'm no expert at all in this area so correct me if I write anything that doesn't make sense.
I'm testing different CLI options, for example if I run as root kmscon --vt=tty4 --no-switchvt --debug --font-name="FiraMono Nerd Font" --font-engine=pango I get the following result

PXL_20220820_195127592 MP

And this is the log

[0000.000000] NOTICE: kmscon Revision v9.0.0-10-g20a2fc4 Aug 20 2022 21:06:55 (log_print_init() in ../src/shl_log.c:509)
[0000.003580] INFO: systemd: system booted with systemd, enabling multi-seat support (uterm_sd_new() in ../src/uterm_systemd.c:67)
[0000.009567] NOTICE: vt: using tty /dev/tty4 (open_tty() in ../src/uterm_vt.c:285)
[0000.062376] INFO: drm_shared: new drm device via /dev/dri/card1 (uterm_drm_video_init() in ../src/uterm_drm_shared.c:501)
[0000.062447] INFO: video: new device 0x1a4d210 (uterm_video_new() in ../src/uterm_video.c:576)
[0000.062867] INFO: ignoring video device /dev/fb0 on seat seat0 as it is a DRM-fbdev device (app_seat_gpu_is_ignored() in ../src/kmscon_main.c:287)
[0000.162271] INFO: drm_shared: new drm device via /dev/dri/card0 (uterm_drm_video_init() in ../src/uterm_drm_shared.c:501)
[0000.162302] INFO: video: new device 0x1a4d060 (uterm_video_new() in ../src/uterm_video.c:576)
[0001.936820] INFO: video: new display 0x1a4ef40 (display_new() in ../src/uterm_video.c:235)
[0001.936852] INFO: drm_shared: display 0x1a4ef40 DPMS is ON (bind_display() in ../src/uterm_drm_shared.c:632)
[0002.003164] INFO: video: new display 0x1a37210 (display_new() in ../src/uterm_video.c:235)
[0002.003187] INFO: drm_shared: display 0x1a37210 DPMS is ON (bind_display() in ../src/uterm_drm_shared.c:632)
[0002.106064] INFO: video_drm2d: activating display 0x1a37210 to 2560x1440 (display_activate() in ../src/uterm_drm2d_video.c:172)
[0002.233852] INFO: drm_shared: setting DPMS of display 0x1a37210 to ON (uterm_drm_display_set_dpms() in ../src/uterm_drm_shared.c:295)
[0002.300846] INFO: video_drm2d: activating display 0x1a4ef40 to 1440x900 (display_activate() in ../src/uterm_drm2d_video.c:172)
[0002.570490] INFO: drm_shared: setting DPMS of display 0x1a4ef40 to ON (uterm_drm_display_set_dpms() in ../src/uterm_drm_shared.c:295)

The kernel is

uname -r
5.18.17-200.fc36.x86_64

The monitor is connected to a Nvidia GPU and the graphical drivers on the system are i915 and nouveau

inxi -G
Graphics:
  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics
    driver: i915 v: kernel
  Device-2: NVIDIA TU106 [GeForce RTX 2060 SUPER] driver: nouveau v: kernel
  Display: x11 server: X.Org v: 1.20.14 with: Xwayland v: 22.1.3 driver: X:
    loaded: modesetting unloaded: fbdev,vesa gpu: nouveau resolution:
    1: 1440x900~60Hz 2: 2560x1440~60Hz
  OpenGL: renderer: NV166 v: 4.3 Mesa 22.1.6
@Korkman
Copy link

Korkman commented Sep 8, 2023

I have seen this behavior when the HOME environment variable was not set. Setting it to /root fixed it for me.

Edit: assuming fonts are located in /root/.local/share/fonts. Placing fonts into the global directory /usr/local/share/fonts might be a better fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants