diff --git a/library/src/net/simonvt/numberpicker/NumberPicker.java b/library/src/net/simonvt/numberpicker/NumberPicker.java index a1b1fe5..0493bc4 100644 --- a/library/src/net/simonvt/numberpicker/NumberPicker.java +++ b/library/src/net/simonvt/numberpicker/NumberPicker.java @@ -1151,6 +1151,16 @@ public void setFormatter(Formatter formatter) { updateInputTextView(); } + /** + * Set the typeface for edit text and wheel texts. + * + * @param tf The typeface object. + */ + public void setTypeface(Typeface tf) { + mInputText.setTypeface(tf); + mSelectorWheelPaint.setTypeface(tf); + } + /** * Set the current value for the number picker. *