Skip to content

Instantly share code, notes, and snippets.

View lieldulev's full-sized avatar
🏠
Working from home

Liel Dulev lieldulev

🏠
Working from home
View GitHub Profile
@lieldulev
lieldulev / TrueType.ts
Created January 26, 2021 19:24 — forked from smhanov/OpenType.ts
Here is my implementation of a TrueType font reader in Typescript. You can read a font directly from an ArrayBuffer, and then call drawText() to draw it. See my article http://stevehanov.ca/blog/index.php?id=143
// By Steve Hanov
// steve.hanov@gmail.com
// Released to the public domain on April 18, 2020
//import { log } from "./log"
// Usage:
/*
declare let arrayBuffer:ArrayBuffer;