public void init(InputMeta in) throws IOException {
  height=Math.abs(in.readShort());
  in.skip(2);
  angle=(float)(in.readShort() / 1800.0 * Math.PI);
  in.skip(2);
  bold=(in.readShort() >= BOLDTHRESHOLD ? MARKER_BOLD : 0);
  italic=(in.readByte() != 0 ? MARKER_ITALIC : 0);
  underline=(in.readByte() != 0);
  strikeout=(in.readByte() != 0);
  charset=in.readByte();
  in.skip(3);
  pitchAndFamily=in.readByte();
  byte[] name=new byte[NAME_SIZE];
  int k;
  for (k=0; k < NAME_SIZE; ++k) {
    int c=in.readByte();
    if (c == 0) {
      break;
    }
    name[k]=(byte)c;
  }
  try {
    faceName=new String(name,0,k,"Cp1252");
  }
 catch (  UnsupportedEncodingException e) {
    faceName=new String(name,0,k);
  }
  faceName=faceName.toLowerCase();
}

public void init ( InputMeta in ) throws IOException { height = Math . abs ( in . readShort ( ) ) ; in . skip ( 2 ) ; angle = ( float ) ( in . readShort ( ) / 1800.0 * Math . PI ) ; in . skip ( 2 ) ; bold = ( in . readShort ( ) >= BOLDTHRESHOLD ? MARKER_BOLD : 0 ) ; italic = ( in . readByte ( ) != 0 ? MARKER_ITALIC : 0 ) ; underline = ( in . readByte ( ) != 0 ) ; strikeout = ( in . readByte ( ) != 0 ) ; charset = in . readByte ( ) ; in . skip ( 3 ) ; pitchAndFamily = in . readByte ( ) ; byte [ ] name = new byte [ NAME_SIZE ] ; int k ; for ( k = 0 ; k < NAME_SIZE ; ++ k ) { int c = in . readByte ( ) ; if ( c == 0 ) { break ; } name [ k ] = ( byte ) c ; } try { faceName = new String ( name , 0 , k , "Cp1252" ) ; } catch ( UnsupportedEncodingException e ) { faceName = new String ( name , 0 , k ) ; } faceName = faceName . toLowerCase ( ) ; }
initializes the metafont instance .
