بدون استفاده از کتابخانه بدین شکل میباشد :
<font.custom.khanbeiki.moslem.customfont.TextViewCustomFont
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:text="@string/text"
app:fontName="IRANSansMobile_Bold" />
<font.custom.khanbeiki.moslem.customfont.EditTextCustomFont
android:id="@+id/editText2"
android:layout_width="match_parent"
app:fontName="IRANSansMobile_UltraLight"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:ems="10"
android:hint="@string/text"
android:inputType="textPersonName" />
<font.custom.khanbeiki.moslem.customfont.RadioButtonCustomFont
android:id="@+id/radioButton3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:fontName="IRANSansMobile_Light"
android:layout_marginBottom="8dp"
android:layoutDirection="rtl"
android:text="@string/text" />
<font.custom.khanbeiki.moslem.customfont.CheckBoxCustomFont
android:id="@+id/checkBox3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:fontName="IRANSansMobile_Light"
android:layout_marginBottom="8dp"
android:layoutDirection="rtl"
android:text="@string/text" />
<font.custom.khanbeiki.moslem.customfont.ButtonCustomFont
android:id="@+id/button2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
app:fontName="IRANSansMobile_Medium"
android:text="@string/text" />
استفاده از کتابخانه :