Comments (12)
Right now we don't have a fix for that, but we are working on deploying via cargo, which will solve this problem. For now patch up some paths, but it'l be fixed in the next release.
from makepad.
Where is defined these path ? In which file ?
from makepad.
Right now in widget/src/widgetstyle.rs you see 2 font paths. Try making those absolute.
from makepad.
I got around this current problem by adding a resources
folder containing the font files a the root of my project.
from makepad.
That works too. We'll fix this nicely soon with makepad released on crates.io.
from makepad.
Just want to note that deploying the resources
directory alongside the binary is not a solution, as it goes against (most?) packaging guidelines.
Ran into this issue while creating an AUR package. For now I'll patch.
from makepad.
It's not nice no, but i need some place to get the font files. So there will need to be a resources/fonts directory somewhere.
from makepad.
Is it possible to change the font to use the system fonts ? On linux it's something like /usr/share/fonts/…
using a patch file you can temporary change the code to use a system folder.
I'v searched where are the references to this folder inside the code, if i remember this folder is referenced only 2 or three times.
Also it can be a great idea to set the font/resources folder inside a str or a String somewhere in the code, so it's simple to change the location of this folder.
EDIT: misconstruction of my comment, sorry
from makepad.
Yea thats a possibility. I'll review it next iteration when we push to crates.io, its been on the todo list.
from makepad.
there will need to be a resources/fonts directory somewhere.
Sure, but it needs to respect the system directories. On Arch Linux this would be /usr/share/makepad
: https://wiki.archlinux.org/index.php/Arch_package_guidelines#Directories
There's https://crates.io/crates/dirs which can help with finding the right directories.
from makepad.
Also relying on system fonts is a road to hell though. Its going to be different on every platform, or not work at all.
from makepad.
Thanks that seems useful, i'll use that when we fix that bit up.
from makepad.
Related Issues (20)
- About Development Experience Discussion HOT 1
- handle `back` button on android HOT 3
- terminal emulator in Makepad-studio
- Broken shader compilation on Android emulators - `GL_OES_EGL_image_external` extension shouldn't be always imported HOT 1
- Lazy deletion of Video Player widget instances in Portal List
- SVG arcs are broken HOT 3
- setting draw_bg = bool on a view gives nasty panic. HOT 5
- TextInput goes outside its borders when wrapped.
- Removing a property during livecoding does not restore it to default value - it remembers the last livecoded value. HOT 3
- platform: linux x11 crosshair cursor is missing null terminator HOT 1
- platform: linux resize cursor remains when moving into window
- Failed to run examples inside Makepad studio on Linux
- iOS Simulator: Resources cannot be found HOT 1
- How to draw text using shader?
- Bezier curve not rendered correctly HOT 4
- live reloading windows application removes min/max/close buttons in topright
- ComponentMap can not ensure element order HOT 1
- sdxl example not working HOT 1
- Native wayland support.
- Studio demos in Windows is blinking strangely
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from makepad.