I align a text object as
local MyText=text {ttf "timrom.ttf", "Some text",1,0 }
object { MyText
translate -(min_extent(MyText) + max_extent(MyText)) / 2
}
`Center_Trans` in transforms.inc is also based on the same approach.
I wonder if there is a way to do so without defining the directive of `MyText`.
I mean something like `min_extent()` of the current object.
Post a reply to this message
|