Lines Matching refs:_char

21027     _renderChar: function(method, ctx, lineIndex, i, _char, left, top, lineHeight) {  argument
21037 charWidth = this._applyCharStylesGetWidth(ctx, _char, lineIndex, i, decl);
21038 charHeight = this._getHeightOfChar(ctx, _char, lineIndex, i);
21041 ctx.fillText(_char, left, top);
21044 ctx.strokeText(_char, left, top);
21054 ctx[method](_char, left, top);
21057 ctx[method](_char, left, top);
21059 charWidth = this._applyCharStylesGetWidth(ctx, _char, lineIndex, i);
21062 ctx.translate(ctx.measureText(_char).width, 0);
21191 var _char = this._textLines[i][j];
21198 this._getWidthOfChar(ctx, _char, i, j) + 1,
21212 _getCacheProp: function(_char, styleDeclaration) { argument
21213 return _char +
21229 _applyCharStylesGetWidth: function(ctx, _char, lineIndex, charIndex, decl) { argument
21244 var cacheProp = this._getCacheProp(_char, styleDeclaration);
21271 return ctx.measureText(_char).width;
21275 this._charWidthsCache[cacheProp] = ctx.measureText(_char).width;
21315 _getWidthOfChar: function(ctx, _char, lineIndex, charIndex) { argument
21316 if (this.textAlign === 'justify' && /\s/.test(_char)) {
21322 var cacheProp = this._getCacheProp(_char, styleDeclaration);
21329 var width = this._applyCharStylesGetWidth(ctx, _char, lineIndex, charIndex);
21339 _getHeightOfChar: function(ctx, _char, lineIndex, charIndex) { argument
21351 var _char = this._textLines[lineIndex][charIndex];
21352 return this._getHeightOfChar(ctx, _char, lineIndex, charIndex);
21360 var width = 0, i, _char;
21362 _char = this._textLines[lineIndex][i];
21363 width += this._getWidthOfChar(ctx, _char, lineIndex, i);
21408 var _char = line[charIndex];
21410 if (!_char.match(/\s/)) {
21411 width += this._getWidthOfChar(ctx, _char, lineIndex, charIndex);
21798 _char = this.text.charAt(index),
21801 while (!reNonWord.test(_char) && index > 0 && index < this.text.length) {
21803 _char = this.text.charAt(index);
21805 if (reNonWord.test(_char) && _char !== '\n') {
22454 var _char = line[j];
22457 width += this._getWidthOfChar(this.ctx, _char, i, this.flipX ? jlen - j : j) *
22677 _char, lineLeftOffset,
22701 _char = textOnSameLineBeforeCursor[i];
22702 widthOfCharsOnSameLineBeforeCursor += this._getWidthOfChar(this.ctx, _char, lineIndex, i);
22724 var _char = textOnNextLine[j],
22725 widthOfChar = this._getWidthOfChar(this.ctx, _char, lineIndex, j);
22830 _char,
22837 _char = textOnSameLineBeforeCursor[i];
22838 widthOfCharsOnSameLineBeforeCursor += this._getWidthOfChar(this.ctx, _char, lineIndex, i);
22861 var _char = textOnPreviousLine[j],
22862 widthOfChar = this._getWidthOfChar(this.ctx, _char, lineIndex, j);
23231 _createTextCharSpan: function(_char, styleDecl, lineLeftOffset, lineTopOffset, charOffset) { argument
23250 fabric.util.string.escapeXml(_char),