{
parcnt = RECORD_BASE_SIZE_STANDARD;
}
final int recordLength = (int) (Math.ceil(text.length() / 2) * 2) + parcnt;
final MfRecord record = new MfRecord(recordLength);
final Point origin = getOrigin();
record.setParam(POS_Y, (int) origin.getY());
record.setParam(POS_X, (int) origin.getX());
record.setParam(POS_CHAR_COUNT, text.length());
record.setParam(POS_FLAGS, flag);
if ((flag & ETO_CLIPPED) == ETO_CLIPPED)
{
final Rectangle rect = getClippingRect();
record.setParam(POS_CLIP_X, rect.x);
record.setParam(POS_CLIP_Y, rect.y);
record.setParam(POS_CLIP_W, rect.width);
record.setParam(POS_CLIP_H, rect.height);
}
record.setStringParam(parcnt, text);
return record;
}