Skip to content

Commit c75f6e9

Browse files
Update README.md with custom font usage example
1 parent 75b42a5 commit c75f6e9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,12 @@ To Change the font of only content:
352352
To apply custom downloaded fonts you have place your font file in "assest/fonts" folder or under "res/font" folder. Below
353353
is the screen-shot for reference about how to place your font file in assest folder
354354

355+
kAlertDialog.setContentFontAssets("fonts/poppins_regular.ttf");
356+
355357
![](https://github.com/TutorialsAndroid/KAlertDialog/blob/master/art/structure.png)
356358

359+
You can also have font in the res/font folder and apply directly.
360+
357361
new KAlertDialog(this, KAlertDialog.NORMAL_TYPE)
358362
.setTitleText("Lorem Ipsum")
359363
.setContentText("Lorem Ipsum is simply dummy text of the printing and typesetting industry.")

0 commit comments

Comments
 (0)