Lines Matching defs:extents
90 cairo_text_extents_t extents;
91 cairo_text_extents(buf->ct, cl->text, &extents);
136 // Set up a temporary cairo_t to measure the text extents; it would be better to compute this in the render()
142 cairo_text_extents_t extents;
143 cairo_text_extents(tmp_buf, cl->text, &extents);
146 item->x1 = s[Geom::X] + extents.x_bearing - border;
147 item->y1 = s[Geom::Y] + extents.y_bearing - border;
148 item->x2 = item->x1 + extents.width + 2*border;
149 item->y2 = item->y1 + extents.height + 2*border;
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;
196 cl->anchor_offset_x = extents.width/2;
197 cl->anchor_offset_y = -extents.height;
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;