1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Merge pull request #7390 from Snuffleupagus/issue-7180

Add upper-case `I` as a possible space replacement fallback in `Font.spaceWidth` to improve text-selection (issue 7180)
This commit is contained in:
Brendan Dahl 2016-06-29 15:11:19 -07:00 committed by GitHub
commit e2e657e44f
4 changed files with 9 additions and 1 deletions

View file

@ -2650,7 +2650,7 @@ var Font = (function FontClosure() {
}
// trying to estimate space character width
var possibleSpaceReplacements = ['space', 'minus', 'one', 'i'];
var possibleSpaceReplacements = ['space', 'minus', 'one', 'i', 'I'];
var width;
for (var i = 0, ii = possibleSpaceReplacements.length; i < ii; i++) {
var glyphName = possibleSpaceReplacements[i];