Hi, is it possible to find out text extents, e.g. width/height of string?
Because the following code gives segmentation fault & I'm not sure, whether
this is a bug or not:
local lgi = require 'lgi'
local cairo = lgi.cairo
local cr = cairo.Context(nil)
cr:text_extents("Hello")
This is an example snippet, but the very same behaviour is observed in draw
function of real widget.
Actually I'm trying to create a button with both image (centered) and text
(at the bottom), so if somebody has an implementation, please, share it.
Thank you.