Closed d47081 closed 2 months ago
implemented set_markup method by the way
https://docs.gtk.org/Pango/method.Layout.set_markup.html
<?php
Gtk::init();
$layout = new PangoLayout(
(new GtkDrawingArea)->create_pango_context()
);
$layout->set_markup('<tt>test</tt>', 13); // OK
var_dump(
$layout->get_size() // OK
);
var_dump(
$layout->get_pixel_size() // OK
);
https://docs.gtk.org/Pango/method.Layout.get_size.html https://docs.gtk.org/Pango/method.Layout.get_pixel_size.html