private void initFromValues(AttributeValues values){
  this.values=values;
  values.defineAll(PRIMARY_MASK);
  this.name=values.getFamily();
  this.pointSize=values.getSize();
  this.size=(int)(values.getSize() + 0.5);
  if (values.getWeight() >= 2f)   this.style|=BOLD;
  if (values.getPosture() >= .2f)   this.style|=ITALIC;
  this.nonIdentityTx=values.anyNonDefault(EXTRA_MASK);
  this.hasLayoutAttributes=values.anyNonDefault(LAYOUT_MASK);
}

private void initFromValues ( AttributeValues values ) { this . values = values ; values . defineAll ( PRIMARY_MASK ) ; this . name = values . getFamily ( ) ; this . pointSize = values . getSize ( ) ; this . size = ( int ) ( values . getSize ( ) + 0.5 ) ; if ( values . getWeight ( ) >= 2f ) this . style |= BOLD ; if ( values . getPosture ( ) >= .2f ) this . style |= ITALIC ; this . nonIdentityTx = values . anyNonDefault ( EXTRA_MASK ) ; this . hasLayoutAttributes = values . anyNonDefault ( LAYOUT_MASK ) ; }
initialize the standard font fields from the values object .
