Rework pagination, fix caption2 font, some logging fixes, updated packages

This commit is contained in:
Essem 2022-02-02 11:01:33 -06:00
parent b69ffe0a0c
commit 26741e8c6c
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
7 changed files with 249 additions and 239 deletions

View file

@ -42,7 +42,6 @@ Napi::Value CaptionTwo(const Napi::CallbackInfo &info) {
caption_image.fontPointsize(width / 17);
caption_image.read("pango:<span font_family=\"" +
(font == "roboto" ? "Roboto Condensed" : font) +
"\" weight=\"" + (font != "impact" ? "bold" : "normal") +
"\">" + caption + "</span>");
caption_image.extent(Geometry(width, caption_image.rows() + (width / 25)),
Magick::CenterGravity);
@ -89,4 +88,4 @@ Napi::Value CaptionTwo(const Napi::CallbackInfo &info) {
} catch (...) {
throw Napi::Error::New(env, "Unknown error");
}
}
}