Searched refs:descent (Results 1 - 23 of 23) sorted by relevance

/openjdk7/jdk/src/share/classes/sun/font/
H A DCoreMetrics.java40 float descent,
52 this.descent = descent;
89 && descent == rhs.descent
113 return fullOffsets[3] - descent;
120 public final float descent; field in class:CoreMetrics
39 CoreMetrics(float ascent, float descent, float leading, float height, int baselineIndex, float[] baselineOffsets, float strikethroughOffset, float strikethroughThickness, float underlineOffset, float underlineThickness, float ssOffset, float italicAngle) argument
H A DFontDesignMetrics.java114 // height, ascent, descent, leading are reported to the client
123 private float descent; field in class:FontDesignMetrics
361 this.descent = metrics.getDescent();
559 * Returns the typographic descent of the font. This is the maximum distance
563 return (int)(roundingUpValue + this.descent);
568 // for leading, ascent & descent sum to height.
575 (int)(roundingUpValue + descent + leading) -
576 (int)(roundingUpValue + descent);
586 height = getAscent() + (int)(roundingUpValue + descent + leading);
H A DFontLineMetrics.java62 return cm.descent;
H A DGraphicComponent.java313 float height = cm.descent - top;
H A DExtendedTextSourceLabel.java248 float ah = cm.ascent + cm.descent;
300 float b = cm.descent;
/openjdk7/jdk/src/windows/classes/sun/awt/windows/
H A DWFontMetrics.java56 * The standard descent of the font. This is the logical height
61 int descent; field in class:WFontMetrics
65 * of space to be reserved between the descent of one line of text
74 * It is the sum of the ascent+descent+leading. There is no
77 * the standard ascent and descent metrics.
88 * The maximum descent for all characters in this font. No character
132 * Get descent
135 return descent;
/openjdk7/jdk/src/share/classes/javax/swing/
H A DSizeRequirements.java212 int descent = req.minimum - ascent;
214 totalDescent.minimum = Math.max(descent, totalDescent.minimum);
217 descent = req.preferred - ascent;
219 totalDescent.preferred = Math.max(descent, totalDescent.preferred);
222 descent = req.maximum - ascent;
224 totalDescent.maximum = Math.max(descent, totalDescent.maximum);
470 int descent = Math.min(totalDescent, maxDescent);
473 spans[i] = (int) Math.min((long) ascent + (long) descent, Integer.MAX_VALUE);
H A DGroupLayout.java2412 * {@code maxDescent} is the maximum descent (preferred height - baseline)
2858 int descent;
2861 descent = size - ascent;
2864 descent = prefDescent;
2878 height = Math.min(descent, springMax -
/openjdk7/jdk/src/solaris/classes/sun/awt/motif/
H A DX11FontMetrics.java52 * The standard descent of the font. This is the logical height
57 int descent; field in class:X11FontMetrics
61 * of space to be reserved between the descent of one line of text
70 * It is the sum of the ascent+descent+leading. There is no
73 * the standard ascent and descent metrics.
84 * The maximum descent for all characters in this font. No character
138 * Get descent
141 return descent;
/openjdk7/jdk/src/share/classes/java/awt/
H A DFlowLayout.java510 * @param descent Ascent for the components. This is only valid if
517 int[] descent) {
544 maxDescent = Math.max(maxDescent, descent[i]);
599 int[] descent = null;
603 descent = new int[nmembers];
616 descent[i] = d.height - baseline;
631 useBaseline, ascent, descent);
640 start, nmembers, ltr, useBaseline, ascent, descent);
514 moveComponents(Container target, int x, int y, int width, int height, int rowStart, int rowEnd, boolean ltr, boolean useBaseline, int[] ascent, int[] descent) argument
H A DGridBagConstraints.java555 // ascent and descent include the insets and ipady values.
557 transient int descent; field in class:GridBagConstraints
H A DFont.java1094 // can't get ascent and descent here, recursive call to this fn,
1127 // and descent, and then the x position at each for each vector along its
2180 float descent = metrics[1];
2186 descent += ssOffset;
2188 float height = ascent + descent + leading;
2192 float[] baselineOffsets = { 0, (descent/2f - ascent) / 2f, -ascent };
2223 CoreMetrics cm = new CoreMetrics(ascent, descent, leading, height,
2313 * marks can be positioned above the ascent or below the descent.
2339 * marks can be positioned above the ascent or below the descent.
2374 * descent
[all...]
H A DGridBagLayout.java1267 constraints.descent);
1276 constraints.descent);
1301 // added to the descent, the rest to the ascent.
1316 // added to the ascent, the rest to the descent.
1477 constraints.descent;
1539 * obtained and the {@code constraints} ascent, descent and
1557 // Adjust the ascent and descent to include the insets.
1558 constraints.descent = h - constraints.ascent +
1783 // Bottom of component (maxY) is at baseline + descent
1785 // as the descent i
[all...]
/openjdk7/jdk/src/solaris/native/sun/java2d/x11/
H A DX11FontScaler_md.c223 return ((XFontStruct *)font)->descent;
232 int ascent, descent, direction; local
249 &direction, &ascent, &descent, newChar);
250 /* XTextExtents16(xFont, xChar, 1, &direction, &ascent, &descent, newChar); */
265 int width, height, direction, ascent, descent; local
277 /* XTextExtents16(xFont, xChar, 1, &direction, &ascent, &descent, &xcs); */
279 &direction, &ascent, &descent, &xcs);
281 height = xcs.ascent+xcs.descent;
413 return ((XCharStruct *)xChar)->descent;
/openjdk7/jdk/src/share/classes/java/awt/font/
H A DTextLine.java70 public final float descent; field in class:TextLine.TextLineMetrics
75 float descent,
79 this.descent = descent;
151 float descent = 0;
155 // ascent + descent must not be less than this value
179 float gd = baselineOffset + cm.descent;
180 descent = Math.max(descent, gd);
186 float graphicHeight = cm.ascent + cm.descent;
74 TextLineMetrics(float ascent, float descent, float leading, float advance) argument
[all...]
H A DTextLayout.java86 * <li>metric information such as ascent, descent, and advance, and
649 * A utility to rebuild the ascent/descent/leading/advance cache.
845 * which are roman, centered and hanging. Ascent and descent are
918 * Returns the descent of this <code>TextLayout</code>.
919 * The descent is the distance from the baseline to the bottom (left) of
921 * The descent is sufficient to accomodate subscripted text and is the
922 * maximum of the sum of the descent, offset, and baseline of each glyph.
923 * This is the maximum descent from the baseline of all the text in
925 * @return the descent of this <code>TextLayout</code>.
929 return lineMetrics.descent;
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/text/
H A DBoxView.java975 // if the alignment is 0 then we need to fit into the descent
1025 int descent;
1030 descent = (int)(span - ascent);
1032 totalDescent.preferred = Math.max(descent, totalDescent.preferred);
1039 descent = (int)(span - ascent);
1041 totalDescent.minimum = Math.max(descent, totalDescent.minimum);
1045 descent = (int)(span - ascent);
1047 totalDescent.maximum = Math.max(descent, totalDescent.maximum);
1051 totalDescent.minimum = Math.max(descent, totalDescent.minimum);
1053 totalDescent.maximum = Math.max(descent, totalDescen
[all...]
/openjdk7/jdk/src/share/demo/management/MemoryMonitor/
H A DMemoryMonitor.java127 private int ascent, descent; field in class:MemoryMonitor.Surface
223 big.drawString(usedStr, x1+4, y1+y2-descent);
226 float ssH = ascent + descent;
362 descent = (int) fm.getDescent();
/openjdk7/jdk/src/solaris/native/sun/awt/
H A Dawt_Font.c109 jfieldID descent; member in struct:X11FontMetricsIDs
137 x11FontMetricsIDs.descent =
138 (*env)->GetFieldID(env, cls, "descent", "I");
879 (*env)->SetIntField(env, this, x11FontMetricsIDs.descent,
886 (jint) fdata->xfont->max_bounds.descent);
891 (*env)->SetIntField(env, this, x11FontMetricsIDs.descent,
892 (jint) fdata->xfont->descent);
897 (jint) fdata->xfont->ascent + fdata->xfont->descent + 1);
900 + fdata->xfont->max_bounds.descent + 1);
/openjdk7/jdk/src/share/classes/sun/tools/jconsole/
H A DBorderedComponent.java349 int descent = labelDim.height - ascent;
362 compLoc.y = grooveRect.y + insets.top/2 - (ascent + descent) / 2 - 1;
413 compLoc.x - 1, compLoc.y + ascent + descent,
415 y + height - compLoc.y - ascent - descent)) {
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/motif/
H A DMotifBorders.java679 int descent = fm.getDescent();
689 g.fillRect(textLoc.x - TEXT_SPACING, textLoc.y - (fontHeight-descent),
690 stringWidth + (2 * TEXT_SPACING), fontHeight - descent);
712 int descent = 0;
724 descent = fm.getDescent();
728 insets.top += ascent + descent + TEXT_SPACING + GROOVE_HEIGHT;
/openjdk7/jdk/src/windows/native/sun/windows/
H A Dawt_Font.cpp523 int descent = metrics.tmDescent; local
526 env->SetIntField(fontMetrics, AwtFont::descentID, descent);
531 env->SetIntField(fontMetrics, AwtFont::maxDescentID, descent);
533 int maxHeight = ascent + descent + leading;
556 descent = max(descent, metrics.tmDescent));
928 AwtFont::descentID = env->GetFieldID(cls, "descent", "I");
/openjdk7/jdk/src/solaris/native/sun/font/
H A DX11FontScaler.c258 int direction, ascent, descent; local
326 * bounds instead of the font's designed ascent/descent */
335 * descent : no need to set descentX - it will be zero

Completed in 95 milliseconds