Lines Matching defs:cl

82     SPCanvasText *cl = SP_CANVASTEXT (item);
87 cairo_set_font_size(buf->ct, cl->fontsize);
89 if (cl->background){
91 cairo_text_extents(buf->ct, cl->text, &extents);
98 ink_cairo_set_source_rgba32(buf->ct, cl->rgba_background);
102 Geom::Point s = cl->s * cl->affine;
103 double offsetx = s[Geom::X] - cl->anchor_offset_x - buf->rect.left();
104 double offsety = s[Geom::Y] - cl->anchor_offset_y - buf->rect.top();
107 cairo_text_path(buf->ct, cl->text);
109 if (cl->outline){
110 ink_cairo_set_source_rgba32(buf->ct, cl->rgba_stroke);
114 ink_cairo_set_source_rgba32(buf->ct, cl->rgba);
121 SPCanvasText *cl = SP_CANVASTEXT (item);
130 cl->affine = affine;
132 Geom::Point s = cl->s * affine;
141 cairo_set_font_size(tmp_buf, cl->fontsize);
143 cairo_text_extents(tmp_buf, cl->text, &extents);
144 double border = cl->border;
182 switch (cl->anchor_position){
184 cl->anchor_offset_x = 0;
185 cl->anchor_offset_y = -extents.height/2;
188 cl->anchor_offset_x = extents.width;
189 cl->anchor_offset_y = -extents.height/2;
192 cl->anchor_offset_x = extents.width/2;
193 cl->anchor_offset_y = 0;
196 cl->anchor_offset_x = extents.width/2;
197 cl->anchor_offset_y = -extents.height;
200 cl->anchor_offset_x = 0;
201 cl->anchor_offset_y = 0;
204 cl->anchor_offset_x = (1 + cl->anchor_pos_x_manual) * extents.width/2;
205 cl->anchor_offset_y = -(1 + cl->anchor_pos_y_manual) * extents.height/2;
209 cl->anchor_offset_x = extents.width/2;
210 cl->anchor_offset_y = -extents.height/2;
214 cl->anchor_offset_x += extents.x_bearing;
215 cl->anchor_offset_y += extents.height + extents.y_bearing;
217 item->x1 -= cl->anchor_offset_x;
218 item->x2 -= cl->anchor_offset_x;
219 item->y1 -= cl->anchor_offset_y;
220 item->y2 -= cl->anchor_offset_y;