class TextLayoutBuilder {

  public TextLayoutBuilder setTypeface(Typeface typeface) {
    if (mParams.paint.getTypeface() != typeface) {
      mParams.createNewPaintIfNeeded();
      mParams.paint.setTypeface(typeface);
      mSavedLayout = null;
    }
    return this;
  }

}