remove stroke entirely

merge-requests/5/merge
loicbersier 4 years ago
parent dfbe71a19c
commit 70f2d600a7

@ -88,7 +88,6 @@ class posterCommand extends Command {
const FONT = './asset/times.ttf'; const FONT = './asset/times.ttf';
const FONT_FILL = '#FFF'; const FONT_FILL = '#FFF';
const TEXT_POS = 'center'; const TEXT_POS = 'center';
const STROKE_COLOR = '#000';
const PADDING = 40; const PADDING = 40;
img.format(function(err, format) { img.format(function(err, format) {
@ -121,7 +120,6 @@ class posterCommand extends Command {
.borderColor('black') .borderColor('black')
.border(BORDER_WIDTH,BORDER_HEIGHT) .border(BORDER_WIDTH,BORDER_HEIGHT)
.fill(FONT_FILL) .fill(FONT_FILL)
.stroke(STROKE_COLOR)
.font(FONT, FONT_SIZE1) .font(FONT, FONT_SIZE1)
.drawText(0, TOP_POS, TOP_TEXT, TEXT_POS) .drawText(0, TOP_POS, TOP_TEXT, TEXT_POS)
.font(FONT, FONT_SIZE2) .font(FONT, FONT_SIZE2)

Loading…
Cancel
Save