mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #19238 from calixteman/bug1938087
Take the absolute value of the font size when the annotation contents is in xhtml (bug 1938087)
This commit is contained in:
commit
2df5d8f3ef
2 changed files with 43 additions and 1 deletions
|
@ -94,7 +94,8 @@ const StyleMapping = new Map([
|
|||
[
|
||||
"font-size",
|
||||
(value, original) => {
|
||||
value = original.fontSize = getMeasurement(value);
|
||||
// The font size must be positive.
|
||||
value = original.fontSize = Math.abs(getMeasurement(value));
|
||||
return measureToString(0.99 * value);
|
||||
},
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue