Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ios 10314-include custom fonts in mistica catalog app #376

Merged

Conversation

L-Trujillo26
Copy link
Contributor

@L-Trujillo26 L-Trujillo26 commented Jun 28, 2024

🎟️ Jira ticket

https://jira.tid.es/browse/IOS-10314

πŸ₯… What's the goal?

Include custom fonts (Vivo & OnAir) in Mistica Catalog app.

🚧 How do we do it?

Adding the fonts to the Mystica Catalog app and setting the FontStyle to match the selected brand's font.

πŸ§ͺ How can I verify this?

The font changes to the selected brand: Vivo New, O2, or Movistar.

πŸ‘ AppCenter build

https://install.appcenter.ms/orgs/tuenti-organization/apps/mistica-swiftui-ios/distribution_groups/public
Mistica Alpha - iOS 30.4.0 (1)

return "VivoType-Regular"
}
}
case .o2, .movistar:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.o2New is missing

return "VivoType-Regular"
}
}
case .o2, .movistar:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.o2New is missing

return "OnAir-Regular"
}
}
default:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider to avoid using default. Then if we add a new brand in the future, it will be forced to put that new brand in some case ;)

return "OnAir-Regular"
}
}
default:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider to avoid using default. Then if we add a new brand in the future, it will be forced to put that new brand in some case ;)

Copy link
Contributor

@yceballost yceballost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we include TelefΓ³nica Sans to use it in TelefΓ³nica and TU skin?

Copy link
Contributor

@dhidalgofadrique dhidalgofadrique left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job! πŸ‘

@L-Trujillo26
Copy link
Contributor Author

Can we include TelefΓ³nica Sans to use it in TelefΓ³nica and TU skin?

done!

return FontMapping(
lightFont: "OnAir-Light",
mediumFont: "OnAir",
boldFont: "OnAir-Bold",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this OnAir-Bold font missing in MisticaCatalog/Resources/ and in the Info.plist UIAppFonts property?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done ! thanks

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, use DemiBold instead of Bold font weight

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I followed the documentation from Mistica's readme for the implementation of the Telefonica font.
https://github.com/Telefonica/mistica-ios/tree/main/Sources/MisticaCommon/Fonts

However, the brand documentation indicates, as you mentioned, using DemiBold, but it also indicates using Medium. In which cases should I choose the different font types?
Captura de pantalla 2024-07-05 a las 14 01 48

https://brandfactory.telefonica.com/document/483#/nuestra-identidad-visual/tipografia

Copy link
Contributor Author

@L-Trujillo26 L-Trujillo26 Jul 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MisticaCatalog/Source/MisticaCatalogApp.swift Show resolved Hide resolved
Copy link
Contributor

@yceballost yceballost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 🀩 Thanks!!

@L-Trujillo26 L-Trujillo26 merged commit 3bff3a6 into main Jul 12, 2024
@L-Trujillo26 L-Trujillo26 deleted the IOS-10314-include-custom-fonts-in-Mistica-Catalog-app branch July 12, 2024 10:39
@tuentisre
Copy link
Collaborator

πŸŽ‰ This PR is included in version 31.0.0 πŸŽ‰

The release is available on GitHub release

Your semantic-release bot πŸ“¦πŸš€

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants