Revert "name-parser: Unify abbreviations in family names"

This reverts commit d3ee35db8e.

The font name helper tools is kept.
This commit is contained in:
Fini Jastrow 2023-11-26 15:52:19 +01:00 committed by Fini
parent 0e30425dc6
commit 1211904df1

View file

@ -183,12 +183,7 @@ class FontnameParser:
def preferred_family(self):
"""Get the SFNT Preferred Familyname (ID 16)"""
(name, rest) = self._shortened_name()
other = self.other_token
weights = self.weight_token
aggressive = self.use_short_families[2]
if self.use_short_families[1]:
[ other, weights ] = FontnameTools.short_styles([ other, weights ], aggressive)
pfn = FontnameTools.concat(name, rest, other, self.short_family_suff)
pfn = FontnameTools.concat(name, rest, self.other_token, self.family_suff)
if self.suppress_preferred_if_identical and pfn == self.family():
# Do not set if identical to ID 1
return ''