southdy / RFont

Simple-to-use single header modular font rendering library written in C.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RFont

logo image

Simple single header modular font rendering library
The library is designed to be lightweight while also supporting the ablitiy to add your own rendering system.\

Build statuses

cplus workflow cplus workflow windows cplus workflow windows

Native supported rendering APIs

  • OpenGL Legacy
  • Modern OpenGL (opengl 3.3 +)
  • RGL (OPENGL version abstraction layer)

Documentation

For documentation read the RFont.h file and check out the example in ./example

todo

- backup font system for when a character is not supported by the main font

uses

A Terminal emulator created using RFont by Noxomix
RSGL (my GUI library)

Credits

stb_truetype

RFont uses stb_truetype for working with fonts.

A modified version of stb_truetype is included in the RFont header.
But you can use an external copy by adding #define RFONT_EXTERNAL_STB to your code

Fontstash

Fontstash is another font rendering library with simular goals.

Fontash was used as a reference for some of this code.

However, this library is intended to have better perfromance and be more lightweight than fontstash.

About

Simple-to-use single header modular font rendering library written in C.

License:Other


Languages

Language:C 99.7%Language:Makefile 0.3%