forked from Supositware/Haha-Yes
Got rid of stroke weight at it make font ugly
This commit is contained in:
parent
c612a20036
commit
dfbe71a19c
2 changed files with 2 additions and 3 deletions
|
@ -73,7 +73,6 @@ class memeCommand extends Command {
|
||||||
const FONT_FILL = '#FFF';
|
const FONT_FILL = '#FFF';
|
||||||
const TEXT_POS = 'center';
|
const TEXT_POS = 'center';
|
||||||
const STROKE_COLOR = '#000';
|
const STROKE_COLOR = '#000';
|
||||||
const STROKE_WEIGHT = 2;
|
|
||||||
const PADDING = 40;
|
const PADDING = 40;
|
||||||
|
|
||||||
img.format(function(err, format) {
|
img.format(function(err, format) {
|
||||||
|
@ -95,7 +94,7 @@ class memeCommand extends Command {
|
||||||
// Write text on image using graphicsmagick
|
// Write text on image using graphicsmagick
|
||||||
img.font(FONT, FONT_SIZE)
|
img.font(FONT, FONT_SIZE)
|
||||||
.fill(FONT_FILL)
|
.fill(FONT_FILL)
|
||||||
.stroke(STROKE_COLOR, STROKE_WEIGHT)
|
.stroke(STROKE_COLOR)
|
||||||
.drawText(0, TOP_POS, TOP_TEXT, TEXT_POS)
|
.drawText(0, TOP_POS, TOP_TEXT, TEXT_POS)
|
||||||
.drawText(0, BOTTOM_POS, BOTTOM_TEXT, TEXT_POS)
|
.drawText(0, BOTTOM_POS, BOTTOM_TEXT, TEXT_POS)
|
||||||
.write(output, function(err) {
|
.write(output, function(err) {
|
||||||
|
|
|
@ -121,7 +121,7 @@ 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, -2)
|
.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…
Reference in a new issue