Searched refs:metrics (Results 26 - 50 of 61) sorted by relevance

123

/openjdk7/jdk/src/windows/native/sun/windows/
H A Dawt_Font.cpp493 TEXTMETRIC metrics; local
494 VERIFY(::GetTextMetrics(hDC, &metrics));
495 font->SetAscent(metrics.tmAscent);
517 TEXTMETRIC metrics; local
518 VERIFY(::GetTextMetrics(hDC, &metrics));
520 awtFont->m_ascent = metrics.tmAscent;
522 int ascent = metrics.tmAscent;
523 int descent = metrics.tmDescent;
524 int leading = metrics.tmExternalLeading;
528 env->SetIntField(fontMetrics, AwtFont::heightID, metrics
[all...]
H A Dawt_DesktopProperties.cpp700 TEXTMETRIC metrics; local
702 if (GetTextMetrics(dc, &metrics) > 0) {
723 jint pointSize = metrics.tmHeight -
724 metrics.tmInternalLeading;
727 if (metrics.tmWeight >= FW_BOLD) {
730 if (metrics.tmItalic ) {
/openjdk7/jdk/src/share/classes/javax/swing/
H A DJTextArea.java555 FontMetrics metrics = getFontMetrics(getFont());
556 rowHeight = metrics.getHeight();
603 FontMetrics metrics = getFontMetrics(getFont());
604 columnWidth = metrics.charWidth('m');
H A DJTextField.java409 FontMetrics metrics = getFontMetrics(getFont());
410 columnWidth = metrics.charWidth('m');
/openjdk7/jdk/src/share/classes/java/awt/
H A DFont.java121 * and the metrics provided by them vary.
215 * specified to return metrics and take parameters 'in
2149 * line metrics. A logical <code>Font</code> might be a
2154 * font then the metrics would be uniform.
2156 * uniform line metrics; <code>false</code> otherwise.
2170 * metrics, although it probably should be: REMIND find why not?
2174 float [] metrics = new float[8];
2178 metrics);
2179 float ascent = metrics[0];
2180 float descent = metrics[
[all...]
/openjdk7/hotspot/src/share/tools/IdealGraphVisualizer/Graph/src/com/sun/hotspot/igv/graph/
H A DFigure.java70 FontMetrics metrics = g.getFontMetrics();
72 heightCash = nodeText.split("\n").length * metrics.getHeight() + INSET;
83 FontMetrics metrics = g.getFontMetrics();
85 int cur = metrics.stringWidth(s);
/openjdk7/jdk/src/share/classes/javax/swing/plaf/metal/
H A DMetalToolTipUI.java88 FontMetrics metrics = SwingUtilities2.getFontMetrics(c, g, font);
117 paintTextR.y + metrics.getAscent());
118 accelBL = metrics.getAscent();
/openjdk7/jdk/src/share/classes/sun/font/
H A DFileFont.java69 * used to get glyph images and metrics.
195 void getGlyphMetrics(long pScalerContext, int glyphCode, Point2D.Float metrics) { argument
197 getScaler().getGlyphMetrics(pScalerContext, glyphCode, metrics);
200 getGlyphMetrics(pScalerContext, glyphCode, metrics);
H A DCompositeFont.java31 * list, which is not used in metrics or queries on the composite, but
75 /* Only the first "numMetricsSlots" slots are used for font metrics.
209 * 1) All metrics slots probably may be initialised anyway as many
210 * apps will query the overall font metrics. However this is not an
314 public void getStyleMetrics(float pointSize, float[] metrics, int offset) { argument
317 super.getStyleMetrics(pointSize, metrics, offset);
319 font.getStyleMetrics(pointSize, metrics, offset);
H A DFontScaler.java168 Point2D.Float metrics)
167 getGlyphMetrics(long pScalerContext, int glyphCode, Point2D.Float metrics) argument
H A DStandardTextSource.java59 * and lm is the line metrics for the entire source text, but not
113 LineMetrics metrics = font.getLineMetrics(chars, cstart, clen, frc);
114 this.cm = ((FontLineMetrics)metrics).cm;
/openjdk7/jdk/src/solaris/classes/sun/awt/X11/
H A DXMenuWindow.java254 XMenuItemPeer.TextMetrics metrics = itemMetrics[i];
255 Dimension dim = metrics.getTextDimension();
259 int y = (itemHeight + dim.height) / 2 - metrics.getTextBaseline();
264 //Text metrics could not be determined because of errors
459 XMenuItemPeer.TextMetrics metrics = item.getTextMetrics();
467 Dimension textDim = metrics.getTextDimension();
H A DXMenuBarPeer.java262 XMenuItemPeer.TextMetrics metrics = itemMetrics[i];
263 Dimension dim = metrics.getTextDimension();
279 int y = (maxHeight + dim.height) / 2 - metrics.getTextBaseline();
/openjdk7/jdk/src/share/native/sun/font/
H A DfreetypeScaler.c77 jint fmType; /* fractional metrics - on/off */
441 jobject metrics; local
462 metrics = (*env)->NewObject(env,
467 return metrics;
472 it seems there is no way to adjust metrics accordingly.
480 TODO: In vertical direction we could do better job and adjust metrics
485 scalerInfo->face->size->metrics.y_scale)/24;
489 /**** Note: only some metrics are affected by styling ***/
495 (jlong) scalerInfo->face->size->metrics.y_scale));
500 (jlong) scalerInfo->face->size->metrics
569 Java_sun_font_FreetypeFontScaler_getGlyphMetricsNative( JNIEnv *env, jobject scaler, jobject font2D, jlong pScalerContext, jlong pScaler, jint glyphCode, jobject metrics) argument
[all...]
/openjdk7/jdk/src/macosx/classes/com/apple/laf/
H A DAquaTabbedPaneUI.java297 final FontMetrics metrics = g.getFontMetrics(font);
300 layoutLabel(tabPlacement, metrics, tabIndex < 0 ? 0 : tabIndex, title, icon, fContentRect, iconRect, textRect, false); // Never give it "isSelected" - ApprMgr handles this
322 paintTitle(g2d, font, metrics, textRect, tabIndex, title);
336 protected void paintTitle(final Graphics2D g2d, final Font font, final FontMetrics metrics, final Rectangle textRect, final int tabIndex, final String title) { argument
358 SwingUtilities2.drawString(tabPane, g2d, title, textRect.x, textRect.y + metrics.getAscent());
1125 final FontMetrics metrics = getFontMetrics();
1137 calculateVerticalTabRunRect(rect, metrics, tabPlacement, returnAt, i, x, y);
1144 calculateHorizontalTabRunRect(rect, metrics, tabPlacement, returnAt, i, x, y);
1166 private void calculateHorizontalTabRunRect(final Rectangle rect, final FontMetrics metrics, final int tabPlacement, final int returnAt, final int i, final int x, final int y) { argument
1177 rect.width = calculateTabWidth(tabPlacement, i, metrics);
1184 calculateVerticalTabRunRect(final Rectangle rect, final FontMetrics metrics, final int tabPlacement, final int returnAt, final int i, final int x, final int y) argument
[all...]
H A DAquaTabbedPaneCopyFromBasicUI.java671 final FontMetrics metrics = getFontMetrics();
672 final int fontHeight = metrics.getHeight();
673 final int fontBaseline = metrics.getAscent();
820 final FontMetrics metrics = SwingUtilities2.getFontMetrics(tabPane, g, font);
823 layoutLabel(tabPlacement, metrics, tabIndex, title, icon, tabRect, iconRect, textRect, isSelected);
830 clippedTitle = SwingUtilities2.clipStringIfNecessary(null, metrics, title, availTextWidth);
833 paintText(g, tabPlacement, font, metrics, tabIndex, clippedTitle, textRect, isSelected);
962 protected void layoutLabel(final int tabPlacement, final FontMetrics metrics, final int tabIndex, final String title, final Icon icon, final Rectangle tabRect, final Rectangle iconRect, final Rectangle textRect, final boolean isSelected) { argument
970 SwingUtilities.layoutCompoundLabel(tabPane, metrics, title, icon, SwingConstants.CENTER, SwingConstants.CENTER, SwingConstants.CENTER, SwingConstants.TRAILING, tabRect, iconRect, textRect, textIconGap);
988 protected void paintText(final Graphics g, final int tabPlacement, final Font font, final FontMetrics metrics, fina argument
1624 calculateTabWidth(final int tabPlacement, final int tabIndex, final FontMetrics metrics) argument
[all...]
H A DAquaUtils.java247 public static void paintDropShadowText(final Graphics g, final JComponent c, final Font font, final FontMetrics metrics, final int x, final int y, final int offsetX, final int offsetY, final Color textColor, final Color shadowColor, final String text) { argument
250 SwingUtilities2.drawString(c, g, text, x + offsetX, y + offsetY + metrics.getAscent());
252 SwingUtilities2.drawString(c, g, text, x, y + metrics.getAscent());
/openjdk7/jdk/src/solaris/native/sun/font/
H A DX11FontScaler.c248 /* If number of glyphs is 256 or less, the metrics are
251 * case), then these metrics seem flaky and there's no
319 jobject metrics; local
342 metrics = (*env)->NewObject(env, sunFontIDs.strikeMetricsClass,
347 return metrics;
/openjdk7/jdk/src/share/classes/javax/swing/plaf/synth/
H A DSynthProgressBarUI.java159 FontMetrics metrics = progressBar.getFontMetrics(font);
161 return (height - metrics.getAscent() - metrics.getDescent()) / 2 +
162 metrics.getAscent();
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/windows/
H A DWindowsProgressBarUI.java82 FontMetrics metrics = progressBar.
93 baseline = y + (height + metrics.getAscent() -
94 metrics.getLeading() -
95 metrics.getDescent()) / 2;
/openjdk7/jdk/src/macosx/classes/sun/font/
H A DCFont.java55 Point2D.Float metrics) {
54 getGlyphMetrics(long pScalerContext, int glyphCode, Point2D.Float metrics) argument
H A DCStrike.java137 // the fractional metrics default on our platform is OFF
148 StrikeMetrics metrics = getFontMetrics(getNativeStrikePtr());
150 metrics.convertToUserSpace(invDevTx);
152 metrics.convertToUserSpace(desc.glyphTx);
153 strikeMetrics = metrics;
180 // calculate an advance, and round if not using fractional metrics
197 // calculate an advance point, and round if not using fractional metrics
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/
H A DBasicToolTipUI.java127 FontMetrics metrics = SwingUtilities2.getFontMetrics(c, g, font);
149 paintTextR.y + metrics.getAscent());
H A DBasicTabbedPaneUI.java706 FontMetrics metrics = getFontMetrics();
707 int fontHeight = metrics.getHeight();
708 int fontBaseline = metrics.getAscent();
864 FontMetrics metrics = SwingUtilities2.getFontMetrics(tabPane, g, font);
867 layoutLabel(tabPlacement, metrics, tabIndex, title, icon,
877 clippedTitle = SwingUtilities2.clipStringIfNecessary(null, metrics, title, availTextWidth);
879 clippedTitle = SwingUtilities2.clipStringIfNecessary(null, metrics, title, textRect.width);
882 paintText(g, tabPlacement, font, metrics,
1016 FontMetrics metrics, int tabIndex,
1028 metrics, titl
1015 layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected ) argument
1056 paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) argument
1747 calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics) argument
[all...]
/openjdk7/jdk/src/macosx/native/sun/font/
H A DAWTStrike.m374 jobject metrics = NULL;
413 metrics = JNFNewObject(env, strikeMetricsCtr,
421 return metrics;

Completed in 98 milliseconds

123