Skip to main content

Fonts

Each screen of AutomatID uses the three following font styles:

  • Title font, used for titles
  • Button font, used for buttons
  • Default font, used for everything else

with the following weights:

  • bold
  • medium
  • regular

For each of these combinations, you can provide your own font through the AutomatIdConfiguration during the initialization phase. If you don't, the default system font is used.

val configuration = AutomatIdConfiguration.Builder()
.withDefaultFontRegular(ResourcesCompat.getFont(this, R.font.montserrat_regular))
.withDefaultFontMedium(ResourcesCompat.getFont(this, R.font.montserrat_medium))
.withDefaultFontBold(ResourcesCompat.getFont(this, R.font.montserrat_bold))
.withTitleFontBold(ResourcesCompat.getFont(this, R.font.montserrat_bold))
.withBtnFontRegular(ResourcesCompat.getFont(this, R.font.montserrat_regular))
.withBtnFontMedium(ResourcesCompat.getFont(this, R.font.montserrat_medium))
.withBtnFontBold(ResourcesCompat.getFont(this, R.font.montserrat_bold))