Skip to content

Commit

Permalink
Shrink Extra -> X in RBIBI family names to avoid overflow (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
be5invis committed Aug 18, 2020
1 parent 72d6f85 commit ca8b4c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions make/pass1/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ function compatibilityName(family, style) {
if (style === "Regular" || style === "Bold" || style === "Italic" || style === "Bold Italic") {
return { family, style, standardFour: true };
} else {
if (/^Extra/.test(style)) {
// Prevent name overflow
style = style.replace(/^Extra/, "X");
}
if (/Italic/.test(style)) {
return {
family: family + " " + style.replace(/Italic/, "").trim(),
Expand Down

0 comments on commit ca8b4c3

Please sign in to comment.