Lines Matching refs:font
33 * A font metrics object for a WServer font.
44 * The standard ascent of the font. This is the logical height
47 * characters in the font may extend above this height.
52 * The standard descent of the font. This is the logical height
55 * characters in the font may extend below this height.
60 * The standard leading for the font. This is the logical amount
68 * The standard height of a line of text in this font. This is
78 * The maximum ascent for all characters in this font. No character
84 * The maximum descent for all characters in this font. No character
90 * The maximum possible height of a line of text in this font.
101 * The maximum advance width of any character in this font.
116 * Calculate the metrics from the given WServer and font.
118 public X11FontMetrics(Font font) {
119 super(font);
183 Font font = getFont();
184 PlatformFont pf = ((PlatformFont) font.getPeer());
186 return getMFCharsWidth(chars, offset, length, font);
205 private native int getMFCharsWidth(char chars[], int offset, int length, Font font);
213 * Get the widths of the first 256 characters in the font.
223 static synchronized FontMetrics getFontMetrics(Font font) {
224 FontMetrics fm = (FontMetrics)table.get(font);
226 table.put(font, fm = new X11FontMetrics(font));