scorninpc / php-gtk3

GTK3 extension for PHP
https://andor.com.br/
GNU Lesser General Public License v3.0
114 stars 11 forks source link

implement PangoLayout::get_extents() #149

Closed d47081 closed 2 months ago

d47081 commented 2 months ago

https://docs.gtk.org/Pango/method.Layout.get_extents.html

<?php

// initialize
Gtk::init();

// init some testing data
$layout = new PangoLayout(
    (new GtkDrawingArea)->create_pango_context()
);

$layout->set_text("test", 4);

var_dump(
    $layout->get_extents() // OK
);