Raylib: Default Font Name?

Created on 21 Sep 2018  ·  5Comments  ·  Source: raysan5/raylib

Hello! I'd like to use the default font outside raylib and friends, and I was wondering if it does have a name and/or there is a standalone version of it accessible. I came along text.c after searching through assets and source codes, where the default font atlas is generated using some sorcery on the fly.

Thanks!

All 5 comments

Actually, raylib default font was mostly edited by me manually, don't remember exactly the font it was based on... I think it could be this one but as far as I remember I always worked directly with the image, also added the latin characters by hand.

Pixel data is embedded in the code and default font is generated at initialization.

In raylib webpage I use this one that is pretty similar.

Why do you need it?

That reply was really fast :D I want to create geometry from characters and use them in 3D GUI elements. I'm currently slapping together something similar to yours in PyxelEdit to use in Blender later. I hope it's okay by you.

Thank you very much for help!

Maybe you can take a look to this code example, I'm doing something similar by code. I use one image to generate a 3D map. Mmmh... maybe I could also add 3D text generation as an option... ;)

You can use my font or any similar one, no problem.

That's a neat demo, thanks for sharing. It's amazing to see what web browsers are capable of these days 👍

Thanks raysan5!

Here is it in PNG:

tmp2mxn3f4k

Please refer to text.c source for more info.

Was this page helpful?
0 / 5 - 0 ratings