bottlesdevs / Bottles

Run Windows software and games on Linux
https://usebottles.com
GNU General Public License v3.0
6.47k stars 276 forks source link

[Bug]: Fonts do not work in prefixes created and launched by Bottles #3525

Open esrevinue opened 1 month ago

esrevinue commented 1 month ago

Describe the bug

Fonts displayed in a wine prefix do not look like correct. They are aliased and don't look like the fonts they are meant to be (i.e. Arial, Times New Roman etc.). I have tried copying my systems own Windows fonts (acquired through Windows installation media) into windows/Fonts in the bottle, soft linking them to windows/Fonts, installing the allfonts package, removing every font manually, but nothing works. The only thing that has an effect is increasing DPI, which eventually forces some apps to render fonts as I would expect them to. I have tried using the various wine versions Bottles provides, including my systems own version.

To Reproduce

Package

Flatpak from Flathub

Distribution

Arch Linux

Debugging Information

Official Package: true
Version: '51.13'
DE/WM: null
Display:
    X.org: true
    X.org (port): :0
    Wayland: true
Graphics:
    vendors:
        amd:
            vendor: amd
            envs:
                DRI_PRIME: '1'
            icd: /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/radeon_icd.x86_64.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/radeon_icd.i686.json
    prime:
        integrated: null
        discrete: null
Kernel:
    Type: Linux
    Version: 6.10.6-1-ck-generic-v4
Disk:
    Total: 16111640576
    Free: 16111493120
RAM:
    MemTotal: 30.0GiB
    MemAvailable: 20.2GiB
Bottles_envs: null

Troubleshooting Logs

No response

Additional context

My own wine prefix using my systems installed wine version displays fonts as I would expect, with no configuration.

EDIT: I installed Bottles through the AUR, and wine renders fonts correctly out of the box.

mirkobrombin commented 1 month ago

Which runner are you using?

esrevinue commented 1 month ago

All of them. I have tried every up to date runner available on Bottles.

mirkobrombin commented 1 month ago

Might a missing dependency in flatpak at this point

esrevinue commented 1 month ago

Would that be an issue on my end? To be clear, I have not made any attempts to do something bizarre like circumvent pacman's dependency checks :)

SeppNel commented 1 month ago

I have the same issue, although my fonts are also messed up in the app itself. Im on fedora using the flatpak. Version 51.13 has correct fonts but after updating fonts are weird in bottles and any program run through it. Also noticed after updating from 51.13 I had to update mangoHUD and gamescope from branch 23.08 to 24.04 manually and without any warning except when triying to enable those features. Screenshot_20241018_130056 Screenshot_20241018_130121

To me it seems like a flatpak dependency issue.