Skip to content

Instantly share code, notes, and snippets.

View johnblat's full-sized avatar

John johnblat

View GitHub Profile
@johnblat
johnblat / sdl3stbtruetype-example.odin
Last active April 15, 2025 20:39 — forked from Lain62/sdl3stbtruetype-example.odin
A quick guide on how to set up stb truetype(stbtt) with sdl3 on odin
package sdl3stbtruetypeexample
import SDL "vendor:sdl3"
import stbtt "vendor:stb/truetype"
import "core:strings"
Font :: struct {
bitmap: []u8,
packed_char: []stbtt.packedchar,
atlas: ^SDL.Texture,