From 940e16b232a43d43c08cd900fdbaea682c48cc3c Mon Sep 17 00:00:00 2001 From: TheEssem Date: Mon, 9 Nov 2020 22:04:29 -0600 Subject: [PATCH] Fixed caption font sizing --- natives/caption.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/natives/caption.cc b/natives/caption.cc index 283aa51..05bac61 100644 --- a/natives/caption.cc +++ b/natives/caption.cc @@ -24,10 +24,10 @@ class CaptionWorker : public Napi::AsyncWorker { caption_image.fillColor("black"); caption_image.alpha(true); caption_image.font("Futura"); - caption_image.fontPointsize(width / 10); + caption_image.fontPointsize(width / 13); caption_image.textGravity(Magick::CenterGravity); caption_image.read("pango:" + caption); - caption_image.extent(Geometry(width, caption_image.rows() + (width / 10)), Magick::CenterGravity); + caption_image.extent(Geometry(width, caption_image.rows() + (width / 13)), Magick::CenterGravity); coalesceImages(&coalesced, frames.begin(), frames.end());