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:
Davide P. Cervone 2012-02-08 09:36:39 -05:00
parent d21d075463
commit 29c8ff2b41
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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});