Winbox font in wine

I have used winbox under wine in OpenSUSE 13.1 for quite some time, and the font was a thin small font that was not anti-aliased (smoothed).
Now I have re-installed my system using Debian Buster and all over the place fonts have changed, probably because anti-aliasing is now enabled (I probably disabled it on the old sys).
In most places, like here in the browser, the anti-aliased fonts look beautiful. However, in winbox they look like the reason why I usually disabled anti-aliasing: for small fonts, there appear double-pixels in unwanted places, making the characters sometimes look a bit fat. It appears to mainly affect numerals, in particular the 8.
However, the characters in general appear to be a bit fatter and wider, also indicated by the fact that some of the column widths I had carefully set before upgrading now are a little too small (I copied my winbox settings from the old setup but otherwise started with a fresh .wine directory).

I have installed the ms truetype fonts. I also tried to google for wine font issues, but I mainly find hints about how to get fonth smoothing working when it isn’t, not the other way around.
I tried the “winetricks” program to set fontsmoothing to disabled, but this has no effect at all. Probably “disabled” sets it to the default of the underlying OS instead, which is now “enabled”…

Anyone have a hint what to do?
I have added an example of what I see
font.png

This is an example of how it looked before.
No anti-aliasing but consistent style and also a little smaller.
On the new system even some texts of the winbox dialogs (names of input fields) do not fit.
font.png

Which font is winbox using by default (like shown in 2nd posting, and also what I see on native WIndows box)?
Maybe I am still missing that font in my new wine installation…

Hello,

I had a similar problem.

I found this while searching for a solution. Don’t know how he did it, but it works for me. Found under http://forum.mikrotik.com/t/winbox-wine-black-borders/46432/20

[HKEY_CURRENT_USER\Software\Wine\X11 Driver]
“ClientSideWithRender”=“N”

Create a file test.reg with this key, and on terminal:
regedit test.reg

try winetricks to turn off font smoothing:
https://forum.winehq.org/viewtopic.php?f=8&t=24327

Normis: I already tried that, but it had no effect at all. My guess is that setting it to no aliasing there (which changes it in Windows) merely exposes the default of Linux/X, which now has aliasing on.
rjscomms: thanks, that looks good! I will try that when I am at the updated system again tonight (my work system is not yet updated and works OK)

The trick mentioned by rjscomms works! Hooray!
It is not mentioned in winetricks although it allows 3 other settings in that same registry folder.
I did one of the others and then renamed it in regedit for convenience (winetricks creates the .reg file for you).
Thanks! Usable winbox again :smiley:
Interesting… the other posting showed exactly the same problem in screendumps but its main topic was another
problem that I did not have (apparently caused by a driver bug back then) and therefore I did not find it…

I also recently had a problem with a new font, and as it turned out, the download source was bad.

Just ran into this same issue.
The important steps are:

  1. Install Microsoft Sans Serif font (micross.ttf), which is the correct font used on Windows
  2. Apply @rjscomms’s reg fix (from post above)

Winbox then looks identical to how it does on windows

Yeah, but now I use Winbox4 and the fight has begun again…