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

ui package not working on Win10? #6

Open
francois-m opened this issue Apr 20, 2021 · 3 comments
Open

ui package not working on Win10? #6

francois-m opened this issue Apr 20, 2021 · 3 comments

Comments

@francois-m
Copy link

Hi Cosmin,
Wonderful work this luapower!
I'm trying to see the 'ui' package in action, but nothing seems to work on Win10. When I launch 'luajit ui_demo.lua', it works during 1 second, and then returns back to the console, without any visible error. I also tried the example proposed in your doc (first example of 'https://luapower.com/ui') without success nor errors. I tried to specify the fonts path with 'ui.default_fonts_path()', but it does not help... Other demos work well, for instance 'nw_demo.lua'.
What's wrong with my trial?
Franz

@capr
Copy link
Member

capr commented Apr 20, 2021

Hi, and thanks for checking it out!

The ui module as well as terra.tr and terra.layer of which it is based are all WIP (check out the Status section of each lib where I explain more).

Background: at first I did this lib (ui) in pure Lua (now called ui0, based on a pure Lua lib for text rendering now called tr0), but then decided I need fast Unicode text rendering and didn't find anything good for that on the Internet so I decided to write my own in terra (that's the terra.tr module). And since I had a great experience with terra (way better than I would've had with C++), I decided I'd do the layouting (basically web's box model including css grid and flexbox) in terra too, and then rewrite ui to work on top of that, and currently I'm in the middle of that rewrite, so expect nothing to work right now. I'm also not sure when I'll be able to get back and finish it all (right now I'm focusing on the x-widgets lib), probably not this year, but who knows...

@capr
Copy link
Member

capr commented Apr 20, 2021

...anyway if you want to get your hands dirty with text rendering and layouting I think the Lua prototypes are a good way to learn and play with that, but that's about all I can offer right now.

@francois-m
Copy link
Author

Thanks for such a quick answer!
I love Lua and use it for almost 15 years, but currently have not so much time for implementing text renderingI I have an old Lua/wxWidget app that I wish to rewrite, and I'm looking for a replacement of wxWidget, which is not maintained anymore. Thanks again for your huge work on Luapower.

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

No branches or pull requests

2 participants