/external/webkit/Source/WebCore/svg/ |
SVGFontFaceElement.cpp | 235 int SVGFontFaceElement::descent() const function in class:WebCore::SVGFontFaceElement 237 // Spec: Same syntax and semantics as the 'descent' descriptor within an @font-face rule. The maximum 242 // 14 different W3C SVG 1.1 testcases use a negative descent value, 245 int descent = static_cast<int>(ceilf(descentValue.toFloat())); local 246 return descent < 0 ? -descent : descent;
|
/external/webkit/Source/WebCore/platform/graphics/chromium/ |
SimpleFontDataChromiumWin.cpp | 80 // FIXME: Access ascent/descent/lineGap with floating point precision. 82 float descent = textMetric.tmDescent; local 97 m_fontMetrics.setDescent(descent); 100 m_fontMetrics.setLineSpacing(ascent + descent + lineGap);
|
FontChromiumWin.cpp | 250 return IntRect(m_point.x() - (fontMetrics.ascent() + fontMetrics.descent()) / 2, 252 totalWidth + fontMetrics.ascent() + fontMetrics.descent(), 359 return IntRect(left - (fontMetrics.ascent() + fontMetrics.descent()) / 2, 361 (right - left) + fontMetrics.ascent() + fontMetrics.descent(),
|
/external/webkit/Source/WebCore/platform/graphics/wince/ |
SimpleFontDataWinCE.cpp | 53 float descent = (tm.tmDescent * m_platformData.size() + 36) / 72.0f; local 56 m_fontMetrics.setDescent(descent); 58 m_fontMetrics.setLineSpacing(lroundf(ascent) + lroundf(descent) + lroundf(lineGap));
|
/external/webkit/Source/WebCore/platform/wx/wxcode/win/ |
fontprops.cpp | 110 wxCoord *descent, wxCoord *externalLeading ) 170 if (descent) 171 *descent = tm.tmDescent;
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
PaintTest.java | 649 assertEquals(p.descent(), fm.descent); 654 assertEquals(p.descent(), fm.descent); 667 assertEquals(p.descent(), fm.descent); 672 assertEquals(p.descent(), fm.descent); 721 float descent10 = p.descent(); 725 float descent20 = p.descent(); [all...] |
/cts/tests/tests/text/src/android/text/style/cts/ |
IconMarginSpanTest.java | 86 assertEquals(0, fm.descent); 94 assertEquals(HEIGHT, fm.descent);
|
DrawableMarginSpanTest.java | 105 assertEquals(0, fm.descent); 115 assertTrue(fm.descent > 0);
|
/external/webkit/Source/WebCore/rendering/ |
RootInlineBox.cpp | 551 static void setAscentAndDescent(int& ascent, int& descent, int newAscent, int newDescent, bool& ascentDescentSet) 556 descent = newDescent; 559 descent = max(descent, newDescent); 563 void RootInlineBox::ascentAndDescentForBox(InlineBox* box, GlyphOverflowAndFallbackFontsMap& textBoxDataMap, int& ascent, int& descent, 573 descent = box->lineHeight() - ascent; 575 // Replaced elements always affect both the ascent and descent. 601 int usedFontDescent = fontMetrics.descent(baselineType()); 606 setAscentAndDescent(ascent, descent, usedFontAscent, usedFontDescent, ascentDescentSet); 610 setAscentAndDescent(ascent, descent, usedFontAscentAndLeading, usedFontDescentAndLeading, ascentDescentSet) [all...] |
/external/icu4c/samples/layout/ |
FontMap.cpp | 260 le_int32 ascent, descent, leading; local 271 descent = fFontInstances[i]->getDescent(); 278 if (descent > fDescent) { 279 fDescent = descent;
|
paragraph.cpp | 88 le_int32 descent = 0; local 133 if (pDescent > descent) { 134 descent = pDescent; 156 fLineHeight = ascent + descent + leading;
|
pflow.c | 112 le_int32 descent = 0; local 190 if (pDescent > descent) { 191 descent = pDescent; 213 flow->fLineHeight = ascent + descent + leading;
|
/external/webkit/Source/WebCore/platform/graphics/ |
SimpleFontData.cpp | 86 float descent = svgFontFaceElement->descent() * scale; local 99 m_fontMetrics.setDescent(descent); 101 m_fontMetrics.setLineSpacing(roundf(ascent) + roundf(descent) + roundf(lineGap));
|
/external/webkit/Source/WebCore/platform/graphics/mac/ |
SimpleFontDataMac.mm | 233 float descent = -scaleEmToUnits(iDescent, unitsPerEm) * pointSize; 243 ascent += floorf(((ascent + descent) * 0.15f) + 0.5f); 246 // Geeza Pro has glyphs that draw slightly above the ascent or far below the descent. Adjust 250 descent *= 2.f; 255 m_fontMetrics.setLineSpacing(lroundf(ascent) + lroundf(descent) + lroundf(lineGap)); 259 if (descent < 3 && lineGap >= 3 && [familyName hasPrefix:@"Hiragino"]) { 260 lineGap -= 3 - descent; 261 descent = 3; 293 m_fontMetrics.setDescent(descent);
|
/packages/apps/Calculator/src/com/android/calculator2/ |
ColorButton.java | 58 mTextY = (getHeight() - paint.ascent() - paint.descent()) / 2;
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
PolyToPoly.java | 57 // centering in Y, we need to measure ascent/descent first 58 float y = 64/2 - (mFontMetrics.ascent + mFontMetrics.descent)/2;
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/ |
LabelMaker.java | 188 int descent = 0; local 193 descent = (int) Math.ceil(textPaint.descent()); 196 int textHeight = ascent + descent;
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
LabelView.java | 167 result = (int) (-mAscent + mTextPaint.descent()) + mPaddingTop
|
/external/webkit/Source/WebCore/platform/graphics/win/ |
SimpleFontDataWin.cpp | 80 float descent = textMetrics.tmDescent; local 83 m_fontMetrics.setDescent(descent); 85 m_fontMetrics.setLineSpacing(lroundf(ascent) + lroundf(descent) + lroundf(lineGap));
|
/external/webkit/Source/WebCore/platform/win/ |
DragImageWin.cpp | 160 IntSize labelSize(labelFont->width(labelRun), labelFont->fontMetrics().ascent() + labelFont->fontMetrics().descent()); 172 urlStringSize.setHeight(urlFont->fontMetrics().ascent() + urlFont->fontMetrics().descent()); 214 IntPoint textPos(DragLabelBorderX, imageSize.height() - (LabelBorderYOffset + urlFont->fontMetrics().descent()));
|
/cts/tests/tests/text/src/android/text/cts/ |
BoringLayoutTest.java | 313 final int descent, 322 metrics.descent = descent;
|
/external/skia/legacy/src/animator/ |
SkDrawPaint.cpp | 24 SK_PROPERTY(descent) 41 SK_MEMBER_PROPERTY(descent, Float), 187 case SK_PROPERTY(descent): 190 // should consider returning fLeading as well (or roll it into ascent/descent somehow
|
/external/skia/src/animator/ |
SkDrawPaint.cpp | 24 SK_PROPERTY(descent) 41 SK_MEMBER_PROPERTY(descent, Float), 187 case SK_PROPERTY(descent): 190 // should consider returning fLeading as well (or roll it into ascent/descent somehow
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
LoadAverageService.java | 150 float descent = mLoadPaint.descent(); local 151 mFH = (int)(descent - mAscent + .5f);
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
LabelView.java | 174 result = (int) (-mAscent + mTextPaint.descent()) + getPaddingTop()
|