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

Support use library import to import fonts and other files #7086

Open
ogoffart opened this issue Dec 13, 2024 Discussed in #7085 · 1 comment
Open

Support use library import to import fonts and other files #7086

ogoffart opened this issue Dec 13, 2024 Discussed in #7085 · 1 comment
Labels
a:language-slint Compiler for the .slint language (mO,bF) bug Something isn't working

Comments

@ogoffart
Copy link
Member

Discussed in #7085

Originally posted by mcitem December 13, 2024
image
I think using relative paths will eventually turn into a disaster.
I hope to import other resource files (such as fonts) through aliases just like importing Slint, similar to the path aliases in Vite.
https://vite.dev/config/shared-options.html#resolve-alias

@ogoffart ogoffart added bug Something isn't working a:language-slint Compiler for the .slint language (mO,bF) labels Dec 13, 2024
@tronical
Copy link
Member

Ah, indeed, it looks like we're trying to parse the .otf file as Slint source code, instead of recognising it as a font to be imported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:language-slint Compiler for the .slint language (mO,bF) bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants