Constructs a
FontRenderContext
object from an
optional
AffineTransform
and two
Object
values that determine if the newly constructed object has
anti-aliasing or fractional metrics.
Parameters:
-
tx - the transform which is used to scale typographical points
to pixels in this
FontRenderContext
. If null, an
identity tranform is used.
-
aaHint - - one of the text antialiasing rendering hint values
defined in {@link java.awt.RenderingHints java.awt.RenderingHints}.
Any other value will throw
IllegalArgumentException
.
{@link java.awt.RenderingHints#VALUE_TEXT_ANTIALIAS_DEFAULT VALUE_TEXT_ANTIALIAS_DEFAULT}
may be specified, in which case the mode used is implementation
dependent.
-
fmHint - - one of the text fractional rendering hint values defined
in {@link java.awt.RenderingHints java.awt.RenderingHints}.
{@link java.awt.RenderingHints#VALUE_FRACTIONALMETRICS_DEFAULT VALUE_FRACTIONALMETRICS_DEFAULT}
may be specified, in which case the mode used is implementation
dependent.
Any other value will throw
IllegalArgumentException
Throws:
-
IllegalArgumentException - if the hints are not one of the
legal values.
Since:
1.6