@ Nonnull public FontSpec getCloneWithDifferentFont ( @ Nonnull final PreloadFont aNewFont ) { ValueEnforcer . notNull ( aNewFont , "NewFont" ) ; if ( aNewFont . equals ( m_aPreloadFont ) ) return this ; // Don't copy loaded font! return new FontSpec ( aNewFont , m_fFontSize , m_aColor ) ; }
Return a clone of this object but with a different font .