Fix the calculation of default vertical metrics
Fixes bug 849627 and 849628. The current code was obviously wrong per the spec 9.7.4.3.
This commit is contained in:
parent
1f9b28f3f6
commit
99165fb702
2 changed files with 5 additions and 4 deletions
|
@ -1047,7 +1047,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||
|
||||
if (properties.vertical) {
|
||||
var vmetrics = dict.get('DW2') || [880, -1000];
|
||||
defaultVMetrics = [vmetrics[1], vmetrics[1] / 2, vmetrics[0]];
|
||||
defaultVMetrics = [vmetrics[1], defaultWidth * 0.5, vmetrics[0]];
|
||||
vmetrics = dict.get('W2');
|
||||
if (vmetrics) {
|
||||
for (var i = 0, ii = vmetrics.length; i < ii; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue