Giter Site home page Giter Site logo

Handling fonts about nuklear HOT 3 OPEN

immediate-mode-ui avatar immediate-mode-ui commented on May 10, 2024
Handling fonts

from nuklear.

Comments (3)

samadadi avatar samadadi commented on May 10, 2024

I am sorry that I ask this question in here but I have to. It's almost two days that I want to load my custom ".ttf" font from file without third party library like (sdl, glfw, ...) but I could not do this and I looked at demo examples in project repository but as I said non of them have used just nuklear to load font. So I wonder if I should use those libraries to work with fonts and generally with nuklear itself?

from nuklear.

dumblob avatar dumblob commented on May 10, 2024

@samadadi yes, Nuklear is designed to support that - will this wiki help? We migrated the repo here, but didn't have time to migrate wiki yet - feel free to do that 😉.

from nuklear.

 avatar commented on May 10, 2024

Like being able to specify parts of text that use different fonts?

This would require meta data to be appended to strings. Such a change carries too much weight and would complicate the API.
I have the same wish as well however. I mix a lot of font sizes in my UI, especially for icons and emojis.
Constantly switching fonts is a pain, so I made a bunch of macros to specify Emoji and Icon sizes inside my code for easier reading.
Of course none of this works inside of nuklear objects, so copy pasting a bunch nk_label it is.

from nuklear.

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.