panaceya / winbox

Snap package with winbox from MikroTik (https://mikrotik.com)
https://snapcraft.io/winbox
94 stars 28 forks source link

Odd font rendering with text cursor out of position #22

Open rgrizzell opened 2 years ago

rgrizzell commented 2 years ago

Describe the bug Fonts appear to be rendering too small. The text cursor is out of position. This has no functional impact as text can be modified as normal. However it is a visual bug that might be confusing and frustrating for users trying to modify existing text.

This bug is NOT an issue with the Snap package, however a workaround can be applied to the Snap to fix this bug. See additional context below.

To Reproduce Steps to reproduce the behavior:

  1. Launch Winbox

Expected behavior The text cursor should be at the end of the string of characters.

Screenshots bugged

Distribution (please complete the following information):

snap version

snap    2.51.7
snapd   2.51.7
series  16
ubuntu  20.04
kernel  5.11.0-37-generic

snap info winbox

name:      winbox
summary:   small utility that allows administration of MikroTik RouterOS
publisher: ThePanaceya
store-url: https://snapcraft.io/winbox
license:   unset
description: |
  Winbox is a small utility that allows administration of MikroTik RouterOS using a fast and simple
  GUI.

  Snap conatins Wine runtime and winbox client.
commands:
  - winbox
snap-id:      UdK6K4ZjRfjL0wRFh0tWGO7vPhA4Qge4
tracking:     latest/stable
refresh-date: today at 20:43 CDT
channels:
  latest/stable:    3.30 2021-09-12 (68) 36MB -
  latest/candidate: ↑                         
  latest/beta:      ↑                         
  latest/edge:      ↑                         
installed:          3.30            (68) 36MB -

snap list winbox

Name    Version  Rev  Tracking       Publisher    Notes
winbox  3.30     68   latest/stable  thepanaceya  -

Additional context

I was able to fix this issue by applying a registry key to a WINEPREFIX outside of the Snap.

fixed

Here's the workaround I used to achieve my results.

[HKEY_CURRENT_USER\Software\Wine\X11 Driver]
"ClientSideWithRender"="N"

Source: MikroTik Forums

iRomanyshyn commented 1 year ago

Слава Україні! The same issue here, it makes me mad. I used winetricks to configure some parameters of my local wineprefix (not Snap package), probably I installed some fonts. And now I can run Winbox with my Wine which looks nice. Also, just disabling window decorations may fix this issue.

Here's how weird the issue looks like when using wine from Snap. Screencast from 23.08.22 14:36:52.webm