HomeSort by relevance Sort by last modified time
    Searched refs:ascent (Results 1 - 25 of 130) sorted by null

1 2 3 4 5 6

  /frameworks/base/awt/org/apache/harmony/awt/gl/font/
BasicMetrics.java 36 * calculated text metrics like advance, ascent or descent. this class is very similar to
42 float ascent; // Ascent of the font field in class:BasicMetrics
62 ascent = lm.getAscent();
80 * It gets ascent and descent from the graphic attribute and
85 ascent = ga.getAscent();
97 underlineThickness = Math.max(ascent/13, 1);
99 strikethroughOffset = -ascent/2; // Something like middle of the line
108 ascent = tmc.ascent;
    [all...]
AndroidLineMetrics.java 42 ascent = fnt.ascent; // Ascent of the font
46 height = ascent + descent + leading; // Height of the font ( == (ascent + descent + leading))
61 lAscent = (int)Math.ceil(fnt.ascent);// // Ascent of the font
65 lHeight = lAscent + lDescent + lLeading; // Height of the font ( == (ascent + descent + leading))
102 // baselineData = LinuxNativeFont.getBaselineOffsetsNative(font.getFontHandle(), font.getSize(), ascent, descent, units_per_EM);
106 baselineOffsets = new float[]{0, (-ascent+descent)/2, -ascent}
    [all...]
TextMetricsCalculator.java 36 * of the text metrics, such as ascent, descent, leading and advance. Actually,
45 float ascent = 0; field in class:TextMetricsCalculator
70 return -ascent;
150 ascent = Math.max(ascent, metrics.ascent - baselineOffset);
153 } else { // Position is not fixed by the baseline, need sum of ascent and descent
154 float height = metrics.ascent + metrics.descent;
163 descent = Math.max(descent, maxHeight - ascent);
164 leading = Math.max(leading, maxHeightLeading - ascent);
    [all...]
FontMetricsImpl.java 40 // ascent of the font
41 private int ascent; field in class:FontMetricsImpl
49 // maximum ascent of the font
87 this.ascent = (int)-p.ascent();
101 * metrics[8] - ascent in pixels<p>
132 * Returns the ascent of the Font describing this FontMetricsImpl object.
136 return this.ascent;
200 * Returns the maximum ascent of the Font describing this FontMetricsImpl
LineMetricsImpl.java 58 // Height of the font ( == (ascent+descent+leading))
61 // Ascent of the font
62 float ascent; field in class:LineMetricsImpl
85 // Height of the font ( == (ascent+descent+leading)) (in pixels)
88 // Ascent of the font (in pixels)
102 * is null than {0, (-ascent+descent)/2, -ascent} values are used for baseline offsets.
107 * metrics[0] - ascent<p>
115 * metrics[8] - ascent in pixels<p>
132 ascent = metrics[0]; // Ascent of the fon
    [all...]
  /frameworks/base/core/tests/coretests/src/android/text/
StaticLayoutTest.java 51 fmi.ascent, fmi.descent);
74 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent,
80 * Ascent of top line and descent of bottom line are affected.
90 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent,
92 fmi.ascent, fmi.bottom);
97 * First line ascent is top, bottom line descent is bottom.
108 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent,
110 fmi.ascent, fmi.descent,
111 fmi.ascent, fmi.bottom);
136 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
Paint_FontMetricsIntTest.java 47 int ascent = 2; local
54 fontMetricsInt.ascent = ascent;
  /frameworks/base/awt/java/awt/font/
GraphicAttribute.java 118 * Gets the ascent of this GraphicAttribute.
120 * @return the ascent of this GraphicAttribute.
130 float ascent = getAscent(); local
135 return new Rectangle2D.Float(0, -ascent, advance, ascent + descent);
  /frameworks/base/core/java/android/text/style/
SubscriptSpan.java 44 tp.baselineShift -= (int) (tp.ascent() / 2);
49 tp.baselineShift -= (int) (tp.ascent() / 2);
SuperscriptSpan.java 44 tp.baselineShift += (int) (tp.ascent() / 2);
49 tp.baselineShift += (int) (tp.ascent() / 2);
DynamicDrawableSpan.java 84 fm.ascent = -rect.bottom;
87 fm.top = fm.ascent;
  /cts/tests/tests/text/src/android/text/style/cts/
SubscriptSpanTest.java 61 // the expected result is: tp.baselineShift -= (int) (tp.ascent() / 2)
65 float ascent = tp.ascent(); local
70 assertEquals(baselineShift - (int) (ascent / 2), tp.baselineShift);
87 // the expected result is: tp.baselineShift -= (int) (tp.ascent() / 2)
91 float ascent = tp.ascent(); local
96 assertEquals(baselineShift - (int) (ascent / 2), tp.baselineShift);
SuperscriptSpanTest.java 61 // the expected result is: tp.baselineShift += (int) (tp.ascent() / 2)
65 float ascent = tp.ascent(); local
70 assertEquals(baselineShift + (int) (ascent / 2), tp.baselineShift);
87 // the expected result is: tp.baselineShift += (int) (tp.ascent() / 2)
91 float ascent = tp.ascent(); local
96 assertEquals(baselineShift + (int) (ascent / 2), tp.baselineShift);
  /external/webkit/WebCore/platform/graphics/chromium/
UniscribeHelperTextRun.cpp 53 setAscent(font.primaryFont()->ascent());
89 int* ascent)
123 m_ascents.append(simpleFontData->ascent());
129 *ascent = m_ascents[m_fontIndex - 1];
FontUtilsChromiumWin.cpp 171 // Given an HFONT, return the ascent. If GetTextMetrics fails,
187 , ascent(kUndefinedAscent)
193 int ascent; member in struct:WebCore::__anon6498::FontData
300 int* ascent,
330 derived->ascent = getAscent(derived->hfont);
336 if (kUndefinedAscent == derived->ascent)
337 derived->ascent = getAscent(derived->hfont);
340 *ascent = derived->ascent;
342 return *ascent != kUndefinedAscent
    [all...]
FontUtilsChromiumWin.h 64 // calculate the ascent for the derived HFONT, and initialize SCRIPT_CACHE
70 // Returns false if the font is not accessible, in which case |ascent| field
81 bool getDerivedFontData(const UChar* family, int style, LOGFONT*, int* ascent, HFONT*, SCRIPT_CACHE**);
UniscribeHelperTextRun.h 69 virtual bool nextWinFontData(HFONT*, SCRIPT_CACHE**, SCRIPT_FONTPROPERTIES**, int* ascent);
UniscribeHelper.h 145 void setAscent(int ascent)
147 m_ascent = ascent;
317 // Ascent offset between the ascent of the primary font
358 virtual bool nextWinFontData(HFONT*, SCRIPT_CACHE**, SCRIPT_FONTPROPERTIES**, int* ascent)
  /frameworks/base/graphics/tests/graphicstests/src/android/graphics/
TypefaceTest.java 75 float ascent = 0; local
81 ascent = fm.ascent;
84 assertTrue("fontMetrics", fm.ascent == ascent);
  /external/webkit/WebCore/svg/
SVGFontFaceElement.h 53 int ascent() const;
  /external/webkit/WebCore/platform/graphics/haiku/
SimpleFontDataHaiku.cpp 54 m_ascent = static_cast<int>(height.ascent);
57 m_xHeight = height.ascent * 0.56f; // Hack taken from the win port.
  /external/webkit/WebCore/rendering/
EllipsisBox.cpp 54 context->drawText(style->font(), TextRun(str.characters(), str.length(), false, 0, 0, false, style->visuallyOrdered()), IntPoint(m_x + tx, m_y + ty + style->font().ascent()));
66 ty += m_y + style->font().ascent() - (m_markupBox->y() + m_markupBox->renderer()->style(m_firstLine)->font().ascent());
109 int mty = ty + style->font().ascent() - (m_markupBox->y() + m_markupBox->renderer()->style(m_firstLine)->font().ascent());
  /external/webkit/WebKit/win/
WebKitGraphics.cpp 132 void FontMetrics(const WebFontDescription& description, int* ascent, int* descent, int* lineSpacing)
134 if (!ascent && !descent && !lineSpacing)
139 if (ascent)
140 *ascent = font.ascent();
WebKitGraphics.h 68 void FontMetrics(const WebFontDescription&, int* ascent, int* descent, int* lineSpacing);
  /external/webkit/WebCore/platform/graphics/qt/
SimpleFontDataQt.cpp 45 m_ascent = fm.ascent();

Completed in 4398 milliseconds

1 2 3 4 5 6