Searched refs:textWidth (Results 1 - 15 of 15) sorted by relevance

/external/skia/gm/
H A Dbitmapcopy.cpp90 SkScalar textWidth = paint.measureText(name, strlen(name)); local
91 if (textWidth > width) {
92 width = textWidth;
103 SkScalar textWidth = paint.measureText(name, strlen(name)); local
104 SkScalar x = (width - textWidth) / SkScalar(2);
/external/skia/bench/
H A DPicturePlaybackBench.cpp82 const SkScalar textWidth = paint.measureText(text, len); local
84 for (SkScalar x = 0; x < fPictureWidth; x += textWidth) {
107 const SkScalar textWidth = paint.measureText(text, len); local
112 for (SkScalar x = 0; x < fPictureWidth; x += textWidth) {
/external/chromium_org/third_party/WebKit/Source/core/rendering/
H A DTextAutosizer.h64 float clusterMultiplier(WritingMode, const TextAutosizingWindowInfo&, float textWidth) const;
86 static void measureDescendantTextWidth(const RenderBlock* container, TextAutosizingClusterInfo&, float minTextWidth, float& textWidth);
H A DRenderEmbeddedObject.cpp159 float textWidth; local
160 if (!getReplacementTextGeometry(paintOffset, contentRect, path, replacementTextRect, font, run, textWidth))
170 float labelX = roundf(replacementTextRect.location().x() + (replacementTextRect.size().width() - textWidth) / 2);
179 bool RenderEmbeddedObject::getReplacementTextGeometry(const LayoutPoint& accumulatedOffset, FloatRect& contentRect, Path& path, FloatRect& replacementTextRect, Font& font, TextRun& run, float& textWidth) const
196 textWidth = font.width(run);
198 replacementTextRect.setSize(FloatSize(textWidth + replacementTextRoundedRectLeftRightTextMargin * 2, replacementTextRoundedRectHeight));
H A DTextAutosizer.cpp164 float TextAutosizer::clusterMultiplier(WritingMode writingMode, const TextAutosizingWindowInfo& windowInfo, float textWidth) const
169 float logicalClusterWidth = std::min<float>(textWidth, logicalLayoutWidth);
193 float textWidth = clusterInfo.blockContainingAllText->contentLogicalWidth(); local
195 if (clusterShouldBeAutosized(clusterInfo, textWidth))
196 multiplier = clusterMultiplier(clusterInfo.root->style()->writingMode(), windowInfo, textWidth);
544 void TextAutosizer::measureDescendantTextWidth(const RenderBlock* container, TextAutosizingClusterInfo& clusterInfo, float minTextWidth, float& textWidth) argument
551 textWidth += toRenderText(descendant)->renderedTextLength() * descendant->style()->specifiedFontSize();
555 measureDescendantTextWidth(descendantBlock, clusterInfo, minTextWidth, textWidth);
557 if (textWidth >= minTextWidth)
H A DRenderEmbeddedObject.h77 bool getReplacementTextGeometry(const LayoutPoint& accumulatedOffset, FloatRect& contentRect, Path&, FloatRect& replacementTextRect, Font&, TextRun&, float& textWidth) const;
H A DRenderFileUploadControl.cpp125 float textWidth = font.width(textRun); local
130 textX = contentLeft + contentWidth() - buttonAndSpacingWidth - textWidth;
142 textWidth,
H A DRenderImage.cpp347 LayoutUnit textWidth = font.width(textRun); local
349 textRunPaintInfo.bounds = FloatRect(textRectOrigin, FloatSize(textWidth, fontMetrics.height()));
352 if (usableWidth >= textWidth && fontMetrics.height() <= imageOffset.height())
354 } else if (usableWidth >= textWidth && usableHeight >= fontMetrics.height())
H A DRenderListBox.cpp139 float textWidth = itemFont.width(textRun); local
140 width = max(width, textWidth);
375 float textWidth = itemFont.width(textRun); local
376 offset.setWidth(itemBoudingBox.width() - textWidth - optionsSpacingHorizontal);
378 float textWidth = itemFont.width(textRun); local
379 offset.setWidth((itemBoudingBox.width() - textWidth) / 2);
H A DRenderBlockLineLayout.cpp2547 static ALWAYS_INLINE float textWidth(RenderText* text, unsigned from, unsigned len, const Font& font, float xPos, bool isFixedPitch, bool collapseWhiteSpace, HashSet<const SimpleFontData*>* fallbackFonts = 0, TextLayout* layout = 0) function in namespace:WebCore
3000 charWidth = textWidth(t, current.m_pos, midWordBreakIsBeforeSurrogatePair ? 2 : 1, f, width.committedWidth() + wrapW, isFixedPitch, collapseWhiteSpace, 0, textLayout);
3033 additionalTmpW = textWidth(t, lastSpace, current.m_pos + 1 - lastSpace, f, width.currentWidth(), isFixedPitch, collapseWhiteSpace, &wordMeasurement.fallbackFonts, textLayout) - wordTrailingSpaceWidth;
3035 additionalTmpW = textWidth(t, lastSpace, current.m_pos - lastSpace, f, width.currentWidth(), isFixedPitch, collapseWhiteSpace, &wordMeasurement.fallbackFonts, textLayout);
3055 float charWidth = textWidth(t, current.m_pos, 1, f, width.currentWidth(), isFixedPitch, collapseWhiteSpace, &wordMeasurement.fallbackFonts, textLayout) + (applyWordSpacing ? wordSpacing : 0);
3186 float additionalTmpW = ignoringSpaces ? 0 : textWidth(t, lastSpace, current.m_pos - lastSpace, f, width.currentWidth(), isFixedPitch, collapseWhiteSpace, &wordMeasurement.fallbackFonts, textLayout);
/external/chromium_org/chrome/browser/resources/net_internals/
H A Dtimeline_graph_view.js706 var textWidth = context.measureText(this.labels_[i]).width;
707 if (maxTextWidth < textWidth)
708 maxTextWidth = textWidth;
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
H A Dorg.eclipse.ui.forms_3.5.2.r36_v20100702.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...
H A Dorg.eclipse.swt.gtk.linux.x86_3.6.1.v3657a.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...
H A Dorg.eclipse.swt.win32.win32.x86_3.6.1.v3657a.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...
H A Dorg.eclipse.jface.text_3.6.1.r361_v20100825-0800.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...

Completed in 663 milliseconds