mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Revert "Merge remote-tracking branch 'grahamkane/master' into issue-1948-test-coverage"
This reverts commit5211ab4065
, reversing changes made toae0bd29d37
.
This commit is contained in:
parent
59f802e31e
commit
4911fe25f4
@ -157,9 +157,7 @@ export class CanvasRenderer {
|
|||||||
const fontVariant = styles.fontVariant
|
const fontVariant = styles.fontVariant
|
||||||
.filter(variant => variant === 'normal' || variant === 'small-caps')
|
.filter(variant => variant === 'normal' || variant === 'small-caps')
|
||||||
.join('');
|
.join('');
|
||||||
const fontFamily = styles.fontFamily.map(fontName => {
|
const fontFamily = styles.fontFamily.join(', ');
|
||||||
return fontName.indexOf(' ') === -1 ? fontName : `"${fontName}"`;
|
|
||||||
}).join(', ');
|
|
||||||
const fontSize = isDimensionToken(styles.fontSize)
|
const fontSize = isDimensionToken(styles.fontSize)
|
||||||
? `${styles.fontSize.number}${styles.fontSize.unit}`
|
? `${styles.fontSize.number}${styles.fontSize.unit}`
|
||||||
: `${styles.fontSize.number}px`;
|
: `${styles.fontSize.number}px`;
|
||||||
|
Loading…
Reference in New Issue
Block a user