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

The UI for the Godot editor doesn't display any text (Linux distro package with system freetype without brotli support) #64090

Open
danieldevzx opened this issue Aug 8, 2022 · 14 comments

Comments

@danieldevzx
Copy link

Godot version

3.5.1

System information

Linux 5.18.16_1, Intel UHD Graphics 620

Issue description

When i open Godot, the user interface doesn't display any text. Here is an image:
image
Occurred after the atulization of godot 3.4 to 3.5

Steps to reproduce

error shown when running by terminal:
image

Minimal reproduction project

No response

@akien-mga
Copy link
Member

What Linux system do you use, and where did you get Godot from? Sounds like a distro packaging mistake (using system feeetype compiled without brotli support).

@dariemlazaro
Copy link

Works for me on Linux Mint, an ubuntu based OS.

@danieldevzx
Copy link
Author

hi I'm using Void Linux and the godot was downloaded by the distro's own package manager

@akien-mga
Copy link
Member

akien-mga commented Aug 8, 2022

Poke @Relected who did the update for Void Linux: void-linux/void-packages#38473

You should either build against the bundled freetype (which supports brotli), or change the Void Linux freetype package to build brotli support.

Closing as this is a downstream packaging issue, not something to fix in Godot.

See also #62552.

@akien-mga
Copy link
Member

akien-mga commented Aug 8, 2022

I notice I have the same issue in my Mageia package btw :)

@bruvzg Sounds like brotli support in distro packaged freetype is not very common, we might need to provide a fallback, or contact all distro packagers.

Let's keep this open as reference as it sounds like more distros might hit the same issue in the end.

@akien-mga akien-mga reopened this Aug 8, 2022
@akien-mga akien-mga changed the title The UI for the Godot editor doesn't display any text. The UI for the Godot editor doesn't display any text (Linux distro package with system freetype without brotli support) Aug 8, 2022
@ghost
Copy link

ghost commented Aug 8, 2022

hello, yeah i updated the godot package, unfortunately freetype is not compiled with brotli support by the previous maintainer of the package, and the last update for freetype was about 18~ hours ago by @Duncaen which might mean that he knows whats up

@bruvzg
Copy link
Member

bruvzg commented Aug 8, 2022

We can have two versions of the fonts in the repo. or use external tools to compress/decompress it, but I'm not sure how to detect which fonts to bundle, it's easy to do in the code, but not from the Scons.

For 4.0 it's also possible to fall back to system font (if fontconfig is installed).

@ghost
Copy link

ghost commented Aug 8, 2022

update: Duncan just updated freetype with brotli support, this issue should be fixed (dont forget to update your repo after :) )

@cunyx
Copy link

cunyx commented Aug 8, 2022

Struggling with this as well since 3.5, the bundled freetype
seems to depend somehow on build-in libpng and zlib.

Unbundling libpng and zlib while using freetype from godot throws build errors for me.

@akien-mga
Copy link
Member

Indeed, the bundled freetype is not wired to build with system zlib and libpng. It could in the past and that caused issues when the system libpng version doesn't match what freetype was built again (typically building against system libpng16 and then running on older Ubuntu - and up until recently the Steam runtime - with libpng12). And zlib is a core component for libpng.

So the recommended option is either to build freetype with brotli support (just did so for Mageia's freetype package, also added the optional harfbuzz and librsvg support while at it), or build with builtin freetype + libpng + zlib.

@ghost
Copy link

ghost commented Aug 8, 2022

yeah it fully fixed now, this issue should be closed

@akien-mga
Copy link
Member

I'm keeping it open for a few days for discoverability by other distro packagers. But thanks for solving it promptly for Void Linux 👍

@cemkeylan
Copy link

I'm a bit confused, I noticed this while compiling godot and I randomly caught the build system saying built-in fonnts are disabled because freetype is built without brotli support. I can't really make sense of it, is there a way to set system fonts without having to launch the editor? If there is no way to display text without freetype with brotli, why does the build system let you compile it in the first place?

@Calinou
Copy link
Member

Calinou commented Sep 27, 2023

I can't really make sense of it, is there a way to set system fonts without having to launch the editor

4.x will fall back to system fonts in this case. However, 3.x can't load system fonts as that feature wasn't implemented there (and won't be backported due to how much work it requires).

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

No branches or pull requests

8 participants