Skip to content

DongkunLee/raylibbmfontextender

Repository files navigation

Raylib Bitmap Font Loader Extender

Introduction

Bitmap Font Extender

This is extender for raylib's internal function LoadBMFont()

You can load mutiple atlas fnt font by this.

Usage

Just call Font fontnice = LoadBMFontEX("Yourfont.fnt");

rather than Font font= Loadont("Yourfont.fnt");

License

Feel free to use. You can use this at any purpose.

Further more

My Homepage Explanation

History

-- 2023. 11. 13.

  1. Modify font rect position

         font.recs[i] = (Rectangle){ (float)charX, (float)charY + (float)imHeight * pageID, (float)charWidth, (float)charHeight };

Prior version uses constant 1024 rather than (float)imHeight

  1. Dynamic allocation of imPath variable

        char** imPath; 
        imPath = malloc(sizeof(char) * 100);  // imPath Initialization

-- 2023. 11. 2. Version 1.0. Created By Dongkun Lee

About

Raylib helper that support multiple bitmap font atlas

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published