Skip to content

Commit

Permalink
Merge pull request #412 from lin/develop
Browse files Browse the repository at this point in the history
Fixes a bug in msqrt when computing clearance value
  • Loading branch information
dpvc committed Jan 7, 2020
2 parents 3cb0425 + dc9d6be commit 4879222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts/output/common/Wrappers/msqrt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export function CommonMsqrtMixin<T extends WrapperConstructor>(Base: T): MsqrtCo
public getPQ(sbox: BBox) {
const t = this.font.params.rule_thickness;
const p = (this.node.attributes.get('displaystyle') ? this.font.params.x_height : t);
const q = (sbox.h + sbox.d > this.surdH ? ((sbox.h + sbox.d) - (this.surdH - t)) / 2 : t + p / 4);
const q = (sbox.h + sbox.d > this.surdH ? ((sbox.h + sbox.d) - (this.surdH - 2 * t - p / 2)) / 2 : t + p / 4);
return [p, q];
}

Expand Down

0 comments on commit 4879222

Please sign in to comment.