In SVG output, remove blackness from HW when looking for delimiter (since the delimiter sizes don't include that). Fixes problem with parens stretching when they should be their natural size (in some of Fred's tests).
This commit is contained in:
parent
d21d075463
commit
29c8ff2b41
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -616,7 +616,7 @@
|
|||
}
|
||||
if (delim.load) {HUB.RestartAfter(AJAX.Require(this.fontDir+"/fontdata-"+delim.load+".js"))}
|
||||
for (var i = 0, m = delim.HW.length; i < m; i++) {
|
||||
if (delim.HW[i][0]*scale >= HW-10 || (i == m-1 && !delim.stretch)) {
|
||||
if (delim.HW[i][0]*scale >= HW-10-SVG.config.blacker || (i == m-1 && !delim.stretch)) {
|
||||
if (delim.HW[i][2]) {scale *= delim.HW[i][2]}
|
||||
if (delim.HW[i][3]) {code = delim.HW[i][3]}
|
||||
return this.createChar(scale,[code,delim.HW[i][1]],font).With({stretched: true});
|
||||
|
|
Loading…
Reference in New Issue
Block a user