GithubHelp home page GithubHelp logo

Comments (2)

AndyObtiva avatar AndyObtiva commented on June 18, 2024

I think you posted this issue in the wrong project. LibUI is a Ruby C binding, so it is meant to be as simple as possible and just a basic mapping from C to Ruby.

You’re not supposed to fiddle with malloc directly. You’re supposed to use the high level Glimmer DSL for LibUI to write code the Ruby way, and it automates all management of low level calls and malloc/free usage.

Right now, in Glimmer DSL for LibUI, you write font code like this:

font family: 'Helvetica', size: 12, weight: :normal, italic: :normal, stretch: :normal

Or just:

font family: 'Helvetica', size: 12

This is as simple as it gets. It’s very readable and human friendly, and you don’t have to fuss with malloc.

If you have requests for improvements, please post them at the Glimmer DSL for LibUI project.

from libui.

kojix2 avatar kojix2 commented on June 18, 2024

@rubyFeedback
Please open source what you are making on Github or Gitlab. Not all of it, just some of it. Otherwise, it's hard for me to collaborate with you. I'm not sure what's stopping you, I think you'll get used to using Git after 2-3 days of exposure. It's worth it. Give it a try. This is the shortest route to solving the problem. If you are having trouble with this, please ask an engineer you know for remote help. If you are good at Japanese, it could be me...

from libui.

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.