Giter Site home page Giter Site logo

Running tour example crashes about iced HOT 4 CLOSED

iced-rs avatar iced-rs commented on May 7, 2024
Running tour example crashes

from iced.

Comments (4)

hecrj avatar hecrj commented on May 7, 2024

Thanks for the report!

The panic is most likely caused by a lack of compatible graphics adapters. The unhelpful error message is a wgpu issue: gfx-rs/wgpu#368

Could you share more details about your environment? If you are on Linux, ensure you have Vulkan drivers installed (you may also need Vulkan utilities).

from iced.

cassc avatar cassc commented on May 7, 2024

Than you!

I am using Arch Linux. I installed Vulkan following ArchWiki . Now the example runs successfully, but all the texts are displayed as squares.

from iced.

cassc avatar cassc commented on May 7, 2024

After changing this line https://github.com/hecrj/iced/blob/b31a80f2c0ca198f1bf0206618654415d2da460e/wgpu/src/renderer.rs#L68 to some font title I found using fc-list and now text shows correctly.

.load(&[font::Family::Title("方正华隶简体".to_string()), font::Family::Serif])

Thank you!

from iced.

hecrj avatar hecrj commented on May 7, 2024

Now the example runs successfully, but all the texts are displayed as squares.

This is a hard problem to solve. It is part of the roadmap (see #33).

The author of skribo did some interesting research that may be useful once we decide to tackle this: https://github.com/linebender/skribo/blob/master/docs/script_matching.md

from iced.

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.