Fix shape artifacts of Ka, Zhe with descender (#1518, #1521).

This commit is contained in:
be5invis 2023-01-10 19:41:42 -08:00
parent 8f86b934a8
commit 3178076c3d
16 changed files with 136 additions and 118 deletions

View file

@ -404,13 +404,6 @@ export class BooleanGeometry extends GeometryBase {
asContoursImpl() {
if (this.m_operands.length === 0) return [];
let arcs = CurveUtil.convertShapeToArcs(this.m_operands[0].asContours());
if (this.m_operands.length === 1) {
arcs = TypoGeom.Boolean.removeOverlap(
arcs,
TypoGeom.Boolean.PolyFillType.pftNonZero,
CurveUtil.BOOLE_RESOLUTION
);
}
for (let j = 1; j < this.m_operands.length; j++) {
arcs = TypoGeom.Boolean.combine(
this.m_operator,