Fix typo
Some checks failed
Build ptprnt / build (push) Failing after 41s

This commit is contained in:
2023-11-21 21:05:48 +01:00
parent f4036e6a83
commit c3110ff32a

View File

@@ -77,14 +77,13 @@ void Image::createLabel(const std::string& str) {
pango_layout_set_alignment(pangoLyt, PANGO_ALIGN_CENTER);
pango_layout_set_font_description(pangoLyt, pangoFontDesc);
pango_context_load_font(pangoCtx, pangoFontDesc);
pango_layout_set_height(pangoLyt, 128 * PANGO_SCALE)
pango_layout_set_text(pangoLyt, str.c_str(), static_cast<int>(str.length()));
pango_layout_set_text(pangoLyt, str.c_str(), static_cast<int>(str.length()));
// Debug only
GError* gerr{nullptr};
pango_layout_write_to_file(pangoLyt, PANGO_LAYOUT_SERIALIZE_DEFAULT, "hello.txt", &gerr);
int width, height;
int width = 0, height = 0;
pango_layout_get_size(pangoLyt, &width, &height);