/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
Paint_Delegate.java | 578 RectF bounds = delegate.measureText(text, index, count, isRtl(bidiFlags)); 618 RectF bounds = delegate.measureText(text, start, end - start + 1, isRtl(bidiFlags)); 934 // FIXME: handle multi-char characters (see measureText) [all...] |
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/ |
CandidateView.java | 183 float textWidth = paint.measureText(suggestion);
|
/external/chromium_org/ppapi/api/dev/ |
ppb_font_dev.idl | 235 int32_t MeasureText(
|
/external/chromium_org/ppapi/api/trusted/ |
ppb_browser_font_trusted.idl | 231 int32_t MeasureText(
|
/external/chromium_org/third_party/WebKit/Source/core/html/canvas/ |
CanvasRenderingContext2D.idl | 94 TextMetrics measureText(DOMString text);
|
CanvasRenderingContext2D.h | 229 PassRefPtr<TextMetrics> measureText(const String& text);
|
/external/chromium_org/third_party/flot/ |
jquery.flot.canvas.min.js | 28 */(function(e){function o(t,o){var u=o.Canvas;n==null&&(r=u.prototype.getTextInfo,i=u.prototype.addText,n=u.prototype.render),u.prototype.render=function(){if(!t.getOptions().canvas)return n.call(this);var e=this.context,r=this._textCache;e.save(),e.textBaseline="middle";for(var i in r)if(s.call(r,i)){var o=r[i];for(var u in o)if(s.call(o,u)){var a=o[u],f=!0;for(var l in a)if(s.call(a,l)){var c=a[l],h=c.positions,p=c.lines;f&&(e.fillStyle=c.font.color,e.font=c.font.definition,f=!1);for(var d=0,v;v=h[d];d++)if(v.active)for(var m=0,g;g=v.lines[m];m++)e.fillText(p[m].text,g[0],g[1]);else h.splice(d--,1);h.length==0&&delete a[l]}}}e.restore()},u.prototype.getTextInfo=function(n,i,s,o,u){if(!t.getOptions().canvas)return r.call(this,n,i,s,o,u);var a,f,l,c;i=""+i,typeof s=="object"?a=s.style+" "+s.variant+" "+s.weight+" "+s.size+"px "+s.family:a=s,f=this._textCache[n],f==null&&(f=this._textCache[n]={}),l=f[a],l==null&&(l=f[a]={}),c=l[i];if(c==null){var h=this.context;if(typeof s!="object"){var p=e("<div> </div>").css("position","absolute").addClass(typeof s=="string"?s:null).appendTo(this.getTextLayer(n));s={lineHeight:p.height(),style:p.css("font-style"),variant:p.css("font-variant"),weight:p.css("font-weight"),family:p.css("font-family"),color:p.css("color")},s.size=p.css("line-height",1).height(),p.remove()}a=s.style+" "+s.variant+" "+s.weight+" "+s.size+"px "+s.family,c=l[i]={width:0,height:0,positions:[],lines:[],font:{definition:a,color:s.color}},h.save(),h.font=a;var d=(i+"").replace(/<br ?\/?>|\r\n|\r/g,"\n").split("\n");for(var v=0;v<d.length;++v){var m=d[v],g=h.measureText(m);c.width=Math.max(g.width,c.width),c.height+=s.lineHeight,c.lines.push({text:m,width:g.width,hei (…)
|
/external/skia/tests/ |
PaintTest.cpp | 235 paint.measureText("", 0, &r, 1.0f);
|
/frameworks/base/core/java/android/text/ |
SpannableStringBuilder.java | [all...] |
/external/chromium/chrome/browser/resources/gpu_internals/ |
timeline_track.js | 45 w = ctx.measureText(text).width;
|
/external/chromium-trace/trace-viewer/src/tracing/tracks/ |
ruler_track.js | 299 var textWidthView = ctx.measureText(textToDraw).width;
|
slice_track.js | 273 w = ctx.measureText(text).width;
|
/external/chromium_org/ppapi/c/dev/ |
ppb_font_dev.h | 251 int32_t (*MeasureText)(PP_Resource font, const struct PP_TextRun_Dev* text);
|
/external/chromium_org/ppapi/c/trusted/ |
ppb_browser_font_trusted.h | 248 int32_t (*MeasureText)(PP_Resource font,
|
/external/chromium_org/skia/ext/ |
lazy_pixel_ref_utils.cc | 191 paint.measureText(text, len, &bounds);
|
/external/chromium_org/third_party/skia/include/core/ |
SkPaint.h | 720 methods like measureText() and getTextWidths(). 808 SkScalar measureText(const void* text, size_t length, 819 SkScalar measureText(const void* text, size_t length) const { 820 return this->measureText(text, length, NULL, 0); [all...] |
/external/chromium_org/third_party/skia/src/core/ |
SkBBoxRecord.cpp | 83 paint.measureText(text, byteLength, &bbox);
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
TextViewTest.java | 289 assertThat(textView.getPaint().measureText("12345"), equalTo(5f));
|
/external/skia/include/core/ |
SkPaint.h | 720 methods like measureText() and getTextWidths(). 808 SkScalar measureText(const void* text, size_t length, 819 SkScalar measureText(const void* text, size_t length) const { 820 return this->measureText(text, length, NULL, 0); [all...] |
/external/skia/src/core/ |
SkBBoxRecord.cpp | 83 paint.measureText(text, byteLength, &bbox);
|
/packages/apps/Music/src/com/android/music/ |
VerticalTextSpinner.java | 471 int width = (int) paint.measureText(text);
|
/external/chromium_org/chrome/browser/resources/net_internals/ |
timeline_graph_view.js | 395 var targetSpacing = context.measureText(sampleText).width + 706 var textWidth = context.measureText(this.labels_[i]).width;
|
/external/chromium_org/third_party/skia/src/animator/ |
SkAnimatorScript.cpp | 518 // { "labelPaint.measureText(label.text) > 0 ? labelPaint.measureText(label.text)+10 : 40", SkType_Float, 0, SkIntToScalar(0x23) },
|
/external/chromium_org/third_party/skia/src/utils/ |
SkLua.cpp | 581 SkLua(L).pushScalar(get_obj<SkPaint>(L, 1)->measureText(text, len)); 659 { "measureText", lpaint_measureText },
|
/external/skia/src/animator/ |
SkAnimatorScript.cpp | 518 // { "labelPaint.measureText(label.text) > 0 ? labelPaint.measureText(label.text)+10 : 40", SkType_Float, 0, SkIntToScalar(0x23) },
|