Skip to content

Instantly share code, notes, and snippets.

View vitalfadeev's full-sized avatar

Vital Fadeev vitalfadeev

  • Russia
View GitHub Profile
@vitalfadeev
vitalfadeev / TrueType.ts
Created September 14, 2020 11:28 — 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;