diff --git a/android/styledictionary/teamwork-design-system/src/main/res/values/typography.xml b/android/styledictionary/teamwork-design-system/src/main/res/values/typography.xml
index 07a1feb..0a7fb74 100644
--- a/android/styledictionary/teamwork-design-system/src/main/res/values/typography.xml
+++ b/android/styledictionary/teamwork-design-system/src/main/res/values/typography.xml
@@ -14,7 +14,7 @@
textDecoration => none
-->
`;
}
+function getFontFamilyTag(token) {
+ const fontFamilyValue = getFontFamilyValue(token.value.fontFamily, token.value.fontWeight);
+ if (fontFamilyValue == null) {
+ return ""; // this is the default font, it's included in the system
+ }
+ return `- ${fontFamilyValue}
`
+}
+
+function getFontFamilyValue(fontFamily, fontWeight) {
+ if (fontFamily == "Roboto") {
+ return null; // this is the default font, it's included in the system
+ }
+ return `@font/${fontFamily.toLowerCase()}_${fontWeight.toLowerCase()}`;
+}
+
function calculateLetterSpacing(fontSize, letterSpacing) {
if (indexOf(letterSpacing, "%") != -1) {
// We treat percentages as em units. Eg: -2% -> -0.02