Fix build break (stack overflow) for no-cv-ss building (#2500)

This commit is contained in:
Belleve 2024-09-12 19:37:32 -10:00 committed by GitHub
parent 9d17e38ed9
commit 6de14570d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 2 deletions

View file

@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
fontName: ["Iosevka", "IosevkaSlab", "IosevkaAile", "IosevkaEtoile"]
fontName: ["Iosevka", "IosevkaSlab", "IosevkaAile", "IosevkaEtoile", "IosevkaNoVarTest"]
steps:
# Checkout repository into `iosevka` sub directory

View file

@ -875,6 +875,13 @@ shape = 700
menu = 700
css = 700
[buildPlans.IosevkaNoVarTest]
family = "IosevkaNoVarTest"
spacing = "normal"
serifs = "sans"
noCvSs = true
exportGlyphNames = false
###################################################################################################
# Collect plans

View file

@ -145,7 +145,7 @@ export class Glyph {
tryBecomeMirrorOf(dst, rankSet) {
if (rankSet.has(this) || rankSet.has(dst)) return;
if (dst.hasDependency(this)) return;
if (this === dst || dst.hasDependency(this)) return;
const csThis = Geom.hashGeometry(this.geometry);
const csDst = Geom.hashGeometry(dst.geometry);
if (csThis && csDst && csThis === csDst) {