Skip to content

Instantly share code, notes, and snippets.

@ricknout
Created July 31, 2020 12:06
Show Gist options
  • Save ricknout/f061d83d749287d8c0c55923cf9267ff to your computer and use it in GitHub Desktop.
Save ricknout/f061d83d749287d8c0c55923cf9267ff to your computer and use it in GitHub Desktop.
MDC-Android letter spacing
<!-- Copyright 2020 Google LLC.
SPDX-License-Identifier: Apache-2.0 -->
<!-- (0.25 tracking / 14sp font size) = 0.0178571429 em -->
<style name="TextAppearance.App.Body2" parent="TextAppearance.MaterialComponents.Body2">
<item name="fontFamily">@font/roboto_mono</item>
<item name="android:textSize">14sp</item>
+ <item name="android:letterSpacing">0.0178571429</item>
...
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment