Skip to content

Instantly share code, notes, and snippets.

View WizzardHub's full-sized avatar

Wizzard WizzardHub

View GitHub Profile
@WizzardHub
WizzardHub / CFont.cs
Created November 20, 2023 16:25
Custom fonts from memory with ImGUI.net
public static class CFont {
// Array of bytes from the font file.
public static readonly byte[] RawData = {
0x00, 0x01, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x80, 0x00, 0x03, 0x00, 0x70,
0x46, 0x46, 0x54, 0x4D, 0x82, 0xA4, 0x8E, 0x69, 0x00, 0x00, 0xCD, 0xA4,
0x00, 0x00, 0x00, 0x1C, 0x47, 0x44, 0x45, 0x46, 0x03, 0x2B, 0x04, 0x7A,
0x00, 0x00, 0x9A, 0x18, 0x00, 0x00, 0x00, 0x2A, 0x47, 0x50, 0x4F, 0x53,
0x10, 0x9C, 0x4C, 0x1E, 0x00, 0x00, 0x9C, 0x04, 0x00, 0x00, 0x31, 0xA0,