Coder Social home page Coder Social logo

Missing text on GUI about neothesia HOT 12 OPEN

polymeilex avatar polymeilex commented on June 9, 2024
Missing text on GUI

from neothesia.

Comments (12)

PolyMeilex avatar PolyMeilex commented on June 9, 2024

Yep, text rendered while playing the song is rendered by Neothesia directly, in menu it's done by iced

from neothesia.

PolyMeilex avatar PolyMeilex commented on June 9, 2024

You could try with opengl

from neothesia.

auroraanna avatar auroraanna commented on June 9, 2024

You could try with opengl

So, I figured you can set the WGPU_BACKEND environment variable but it launches successfully on nothing but gl. So it must've been running on OpenGL this whole time. I thought vulkan would work but no.

$ WGPU_BACKEND="vulkan" ./result/bin/neothesia
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: AdapterRequest', neothesia/src/main.rs:243:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: queue 0x55b0209b1650 destroyed while proxies still attached:
  xdg_wm_base@20 still attached
  wl_output@14 still attached
  wl_seat@13 still attached
  xdg_activation_v1@12 still attached
  wp_viewporter@11 still attached
  zwp_text_input_manager_v3@10 still attached
  zwp_pointer_constraints_v1@9 still attached
  zwp_relative_pointer_manager_v1@8 still attached
  zxdg_decoration_manager_v1@7 still attached
  wl_subcompositor@6 still attached
  wl_compositor@5 still attached
  wl_shm@4 still attached
  wl_registry@2 still attached

For games on Steam, vulkan works though. vkcube runs too.

I guess I could told from the missing mangohud overlay I get on all other vulkan apps that it's not running on vulkan.

from neothesia.

PolyMeilex avatar PolyMeilex commented on June 9, 2024

Could you try with "RUST_LOG=debug" env

from neothesia.

auroraanna avatar auroraanna commented on June 9, 2024

Could you try with "RUST_LOG=debug" env

With that env variable I found out the problem with running on vulkan was that it didn't have libvulkan.so.1 in it's path which it has now.

So, it runs on vulkan but the text is still missing. However, the Neothesia logo shows now:
image

from neothesia.

auroraanna avatar auroraanna commented on June 9, 2024

Oh, it was logging that it failed to find a bunch of fonts which I have all installed. Recompiling with fontconfig in runtime path.

This might just end up being a missing libraries thing.

from neothesia.

auroraanna avatar auroraanna commented on June 9, 2024

Hmm, fontconfig in it's runtime PATH doesn't help. For vulkan-loader with libvulkan.so.1 I had to explicitly put it's lib folder into LD_LIBRARY_PATH though. Maybe fontconfig is not accessible to it?

from neothesia.

auroraanna avatar auroraanna commented on June 9, 2024

The database can try to load system fonts. Currently, this is implemented by scanning predefined directories. The library does not interact with the system API.

--https://crates.io/crates/fontdb

I looked in the dependency graph and found fontdb. Assuming this crate is used for using system fonts, scanning predefined directories doesn't work on my Linux distro (NixOS). That must be why adding fontconfig to the runtime PATH didn't help.

I will try to put it in a FHS environment then so the predefined directories will work.

from neothesia.

auroraanna avatar auroraanna commented on June 9, 2024

So, I was told putting it in an FHS env is not ideal. Patching the source code of the fontdb dependency would be better, but complex. Another option is Neothesia switching to using fontconfig. You can't expect fonts to be in predefined paths. Not every systen works the same way.

from neothesia.

PolyMeilex avatar PolyMeilex commented on June 9, 2024

I wonder if it would be possible to hardcode the iced font the same way I do for Neothesia, for Neothesia I just prebundle the hardcoded font and that's why it works, iced on the other hand is "smarter" and tries to use system's font.

Could you try one of iced demos/examples? So we can at least report this upstream before I strip the font detection part out (if it manifests upstream that is)

from neothesia.

auroraanna avatar auroraanna commented on June 9, 2024

So we can at least report this upstream

Upstream in iced? Shouldn't this be reported in cosmic-text or fontdb itself? (fontdb is a direct dependency of cosmic-text)

from neothesia.

auroraanna avatar auroraanna commented on June 9, 2024

Hmm, there's already issues about this:

and pop-os/cosmic-text#174 was merged so I guess cosmic-text needs to be updated in glyphon and iced_tiny_skia but there hasn't been a release of cosmic-text since it was merged.

from neothesia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.