Skip to content

Font Customization#44

Open
jvartanian wants to merge 2 commits intoRamotion:masterfrom
takoda-schemata:font-resources
Open

Font Customization#44
jvartanian wants to merge 2 commits intoRamotion:masterfrom
takoda-schemata:font-resources

Conversation

@jvartanian
Copy link

This PR exposes the ability to customize the slider's font using a font resource.

For example:

  • XML: app:slider_font="@font/karla"
  • Kotlin: slider.fontId = R.font.karla

The first attempt at this feature exposed the ability to customize the font using a Typeface directly, but there was no way to serialize the Typeface object in the FluidSlider.State class, so it was decided to allow only font resources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant