362 |
rc = gRC; |
rc = gRC; |
363 |
return font.getLineMetrics(chars, begin, limit, rc); |
return font.getLineMetrics(chars, begin, limit, rc); |
364 |
} |
} |
365 |
|
|
366 |
|
/** |
367 |
|
* Returns the bounds of the largest character in a Graphics context. |
368 |
|
* @param context the Graphics context object. |
369 |
|
* @return a <code>Rectangle2D</code> representing the bounds |
370 |
|
*/ |
371 |
|
public Rectangle2D getMaxCharBounds(Graphics context) |
372 |
|
{ |
373 |
|
if( context instanceof Graphics2D ) |
374 |
|
return font.getMaxCharBounds(((Graphics2D)context).getFontRenderContext()); |
375 |
|
return font.getMaxCharBounds( gRC ); |
376 |
|
} |
377 |
|
|
378 |
/** |
/** |
379 |
* Returns a {@link LineMetrics} object constructed with the |
* Returns a {@link LineMetrics} object constructed with the |
436 |
|
|
437 |
return gRC; |
return gRC; |
438 |
} |
} |
439 |
|
|
440 |
|
/** |
441 |
|
* Returns if the font has uniform line metrics. |
442 |
|
* @see Font#hasUniformLineMetrics() |
443 |
|
*/ |
444 |
|
public boolean hasUniformLineMetrics() |
445 |
|
{ |
446 |
|
return font.hasUniformLineMetrics(); |
447 |
|
} |
448 |
} |
} |