From f4573536e47cb8877470619d94d4cef6d91d7b69 Mon Sep 17 00:00:00 2001 From: minjaesong Date: Mon, 2 Mar 2026 15:23:09 +0900 Subject: [PATCH] actually writing metadata that Windows likes --- OTFbuild/font_builder.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/OTFbuild/font_builder.py b/OTFbuild/font_builder.py index e9e15d4..046737e 100644 --- a/OTFbuild/font_builder.py +++ b/OTFbuild/font_builder.py @@ -349,8 +349,15 @@ def build_font(assets_dir, output_path, no_bitmap=False, no_features=False): ) fb.setupNameTable({ + "copyright": "CuriousTorvald", "familyName": "Terrarum Sans Bitmap", "styleName": "Regular", + "uniqueFontIdentifier": "TerrarumSansBitmap-Regular-1.15", + "fullName": "Terrarum Sans Bitmap Regular", + "psName": "TerrarumSansBitmap-Regular", + "version": "1.15", + "licenseDescription": "SIL Open Font License, Version 1.1", + "licenseInfoURL": "http://scripts.sil.org/OFL" }) fb.setupOS2( @@ -364,8 +371,15 @@ def build_font(assets_dir, output_path, no_bitmap=False, no_features=False): fsType=0, ) + unix_ts = int(time.time()) + opentype_ts = unix_ts + 2082844800 + fb.setupPost() - fb.setupHead(unitsPerEm=SC.UNITS_PER_EM) + fb.setupHead( + unitsPerEm=SC.UNITS_PER_EM, + created=opentype_ts, + modified=opentype_ts, + ) font = fb.font