-- @titre Exporter la TTF en un geste -- @title Export the TTF in one go -- @categorie exporter -- @resume Compile la fonte (variable si elle a plusieurs masters) et écrit le fichier .ttf dans le dossier choisi, par défaut votre dossier personnel, sans passer par la fenêtre Exporter. Pratique à lancer après chaque série de corrections, quand Fontista Control suit ce fichier. -- @summary Compiles the font (variable when it has several masters) and writes the .ttf to the chosen folder, your home folder by default, without the Export window. Handy after each round of fixes, when Fontista Control follows that file. -- Fontista · bibliothèque de scripts · https://fontista.thinkspark.dev/scripts.html local FOLDER = nil -- nil: your home folder; or a path such as "/Users/me/Fonts" local en = lang == "en" local dir = FOLDER or os.getenv("HOME") or os.getenv("USERPROFILE") or "." local name = font.family:gsub("[^%w%-]", "") if name == "" then name = "Fontista" end local sep = package.config:sub(1, 1) local path = dir .. sep .. name .. ".ttf" local bytes = export_ttf(path) print(string.format(en and "%s · %d bytes" or "%s · %d octets", path, bytes))