Next: , Previous: TeX-layout, Up: Class reference



8.3.14 Text-layout

A node for drawing text.

It supports the object interface, the node interface and the composite interface.

     struct vcl_text_layout * vcl_text_layout_new (uns copy,
                                    const char *string, int font_id,
                                    real font_size,
                                    const struct geom_rectangle *bbox)

Creates a text-layout. string is a string of glyph codes (in UTF-8). If copy is true, then the string is copied, otherwise a pointer is taken (and the text-layout is not responsible for freeing it during the destroying). font_id is a FONTLIB value specifying the font. font_size is the font size and bbox is the bounding box of the string, both in local coordinates.