Ensure that all Font
instances have the vertical
property set to a boolean
Given that the `vertical` property is always accessed on the main-thread, ensuring that the property is explicitly defined seems like the correct thing to do since it also avoids boolean casting elsewhere in the code-base.
This commit is contained in:
parent
c5e1fd3fde
commit
59f54b946d
@ -1761,7 +1761,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
||||
fontFamily: font.fallbackName,
|
||||
ascent: font.ascent,
|
||||
descent: font.descent,
|
||||
vertical: !!font.vertical,
|
||||
vertical: font.vertical,
|
||||
};
|
||||
}
|
||||
textContentItem.fontName = font.loadedName;
|
||||
|
@ -607,7 +607,7 @@ var Font = (function FontClosure() {
|
||||
}
|
||||
|
||||
this.cidEncoding = properties.cidEncoding;
|
||||
this.vertical = properties.vertical;
|
||||
this.vertical = !!properties.vertical;
|
||||
if (this.vertical) {
|
||||
this.vmetrics = properties.vmetrics;
|
||||
this.defaultVMetrics = properties.defaultVMetrics;
|
||||
|
Loading…
Reference in New Issue
Block a user