Home
last modified time | relevance | path

Searched refs:textWidth (Results 1 – 10 of 10) sorted by relevance

/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DSubtitlePainter.java328 int textWidth = 0; in setupTextLayout() local
331 textWidth = Math.max((int) Math.ceil(textLayout.getLineWidth(i)), textWidth); in setupTextLayout()
333 if (cueSize != Cue.DIMEN_UNSET && textWidth < availableWidth) { in setupTextLayout()
334 textWidth = availableWidth; in setupTextLayout()
336 textWidth += textPaddingX * 2; in setupTextLayout()
344 textLeft = anchorPosition - textWidth; in setupTextLayout()
347 textLeft = (anchorPosition * 2 - textWidth) / 2; in setupTextLayout()
356 textRight = Math.min(textLeft + textWidth, parentRight); in setupTextLayout()
358 textLeft = (parentWidth - textWidth) / 2 + parentLeft; in setupTextLayout()
359 textRight = textLeft + textWidth; in setupTextLayout()
[all …]
/external/skqp/gm/
Dbitmapcopy.cpp99 SkScalar textWidth = font.measureText(name, strlen(name), kUTF8_SkTextEncoding); in onDraw() local
100 if (textWidth > width) { in onDraw()
101 width = textWidth; in onDraw()
112 SkScalar textWidth = font.measureText(name, strlen(name), kUTF8_SkTextEncoding); in onDraw() local
113 SkScalar x = (width - textWidth) / SkScalar(2); in onDraw()
/external/skia/gm/
Dbitmapcopy.cpp114 SkScalar textWidth = font.measureText(name, strlen(name), SkTextEncoding::kUTF8); in onDraw() local
115 if (textWidth > width) { in onDraw()
116 width = textWidth; in onDraw()
127 SkScalar textWidth = font.measureText(name, strlen(name), SkTextEncoding::kUTF8); in onDraw() local
128 SkScalar x = (width - textWidth) / SkScalar(2); in onDraw()
/external/perfetto/ui/src/frontend/
Dflamegraph.ts275 let textWidth = lineSplitter.lineWidth; variable
281 textWidth = Math.max(textWidth, lineSplitter.lineWidth);
294 textWidth = Math.max(textWidth, lineSplitter.lineWidth);
309 textWidth = Math.max(textWidth, lineSplitter.lineWidth);
319 const rectWidth = textWidth + 2 * paddingPx;
Dtrack.ts104 const textWidth = ctx.measureText(text).width; constant
105 let width = textWidth;
110 width = Math.max(textWidth, text2Width);
/external/pdfium/xfa/fxfa/
Dcxfa_textlayout.h79 void Loader(float textWidth, float* pLinePos, bool bSavePieces);
81 float textWidth,
85 float textWidth,
Dcxfa_textlayout.cpp634 void CXFA_TextLayout::Loader(float textWidth, in Loader() argument
642 LoadText(m_pTextDataNode, textWidth, pLinePos, bSavePieces); in Loader()
654 LoadRichText(pXMLContainer, textWidth, pLinePos, pRootStyle, bSavePieces, in Loader()
659 float textWidth, in LoadText() argument
662 InitBreak(textWidth); in LoadText()
695 float textWidth, in LoadRichText() argument
741 textWidth, pXMLNode, pParentStyle.Get()); in LoadRichText()
835 if (!LoadRichText(pChildNode, textWidth, pLinePos, in LoadRichText()
/external/oboe/samples/drumthumper/src/main/java/com/plausibleaudio/drumthumper/
DTriggerPad.kt159 val textWidth = mPaint.measureText(mText) in onDraw() constant
162 canvas.drawText(mText, mDrawRect.left + midX - textWidth / 2, in onDraw()
/external/ImageMagick/Magick++/lib/Magick++/
DTypeMetric.h55 double textWidth(void) const;
/external/ImageMagick/Magick++/lib/
DTypeMetric.cpp62 double Magick::TypeMetric::textWidth(void) const in textWidth() function in Magick::TypeMetric