Skip to content

Instantly share code, notes, and snippets.

@ata23kan
ata23kan / times_new_roman_dataset.py
Created April 19, 2026 18:04
Times New Roman - Quadratic Bezier curve control points
# times_new_roman_dataset.py
# Quadratic Bezier Curve Data extracted directly from Times.ttc
# Format: { 'Letter': [ [P0, P1, P2], [P0, P1, P2], ... ] }
font_data = {
'A': [[[914, 526], [796, 808], [677, 1090]], [[677, 1090], [560, 808], [443, 526]], [[443, 526], [678, 526], [914, 526]], [[30, 0], [30, 18], [30, 37]], [[30, 37], [109, 46], [148, 97]], [[148, 97], [188, 148], [284, 374]], [[284, 374], [498, 876], [711, 1379]], [[711, 1379], [731, 1379], [751, 1379]], [[751, 1379], [1006, 798], [1261, 218]], [[1261, 218], [1312, 102], [1342, 74]], [[1342, 74], [1373, 47], [1445, 37]], [[1445, 37], [1445, 18], [1445, 0]], [[1445, 0], [1184, 0], [924, 0]], [[924, 0], [924, 18], [924, 37]], [[924, 37], [1014, 45], [1040, 56]], [[1040, 56], [1066, 68], [1066, 113]], [[1066, 113], [1066, 128], [1056, 166]], [[1056, 166], [1046, 204], [1028, 246]], [[1028, 246], [986, 344], [943, 443]], [[943, 443], [675, 443], [407, 443]], [[407, 443], [327, 242], [312, 198]], [[312, 198], [296, 153], [296, 127]], [[296, 127],