Lines Matching refs:text
84 cleanText: function(text) { argument
85 text = _.invoke(text.split('\n'), 'trim');
86 return text.join('\n');
92 textBBox: function(text, font) { argument
93 text = this.cleanText(text);
97 p = this.paper_.print(0, 0, text, font.obj_, font['font-size']);
99 p = this.paper_.text(0, 0, text);
131 drawText: function(x, y, text, font, align) { argument
132 text = this.cleanText(text);
137 var bb = this.textBBox(text, font);
147 t = paper.print(x - bb.x, y - bb.y, text, font.obj_, font['font-size']);
149 t = paper.text(x - bb.x - bb.width / 2, y - bb.y, text);