The Font object has a transform attribute that can be accessed via
Font.getTransform(). Most of the time, this attribute will be a
simple identity transform. The only way to figure out if the
transform is an identity transform is to call getTransform and then
inspect the returned AffineTransform object. Unfortunately, calling
getTransform() requires the Font object to clone the AffineTransform
since the transform is mutable.
Alternatively, Font could have a method that would return a boolean
indicating whether the transform attribute was an identity transform.
In that case, the caller could simplify their processing of the Font
and avoid having to clone a transform by avoiding a call to getTransform().
Similarly, the TransformAttribute object that is used to hold the
transform attribute for a Font object has no easy way to determine if
it is holding an identity transform. An isIdentity() method on that
class would enable the same optimizations when dealing with a