From 5583c6e342e0029d2d1470c33a5a71543012696d Mon Sep 17 00:00:00 2001 From: Marcus Kellerman Date: Fri, 14 Oct 2016 09:23:56 -0700 Subject: [PATCH] Do not truncate subfamily name to avoid MacOS treating fonts as the same --- font-patcher | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/font-patcher b/font-patcher index ee724a6ab..2ff95941e 100755 --- a/font-patcher +++ b/font-patcher @@ -133,10 +133,8 @@ except IndexError: if subFamily == "Regular": subFamily = fallbackStyle -fontname += " - " + subFamily - if args.windows: - maxLength = 31 + maxLength = 31 - len('-'+subFamily) familyname += " " + projectNameAbbreviation fullname += " Windows Compatible" # now make sure less than 32 characters name length @@ -149,6 +147,10 @@ if args.windows: else: familyname += " " + projectNameSingular +# Don't truncate the subfamily to keep fontname unique. MacOS treats fonts with +# the same name as the same font, even if subFamily is different. +fontname += '-' + subFamily + # rename font def replace_all(text, dic):