Fix typo
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user