Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Conversation

@thorbenprimke
Copy link

@thorbenprimke thorbenprimke commented Jun 29, 2017

Summary:
In order to A/B test fonts, this adds an option to the
CalligraphyConfig to provide a fontPath substitution map.
This enables dynamically changing fonts at run time and requires
no changes to XML files.
The logic to substitute the fontPath is in the TypefaceUtils.
The reason the map is set on the TypeFaceUtils class instead of the
TypefaceUtils checking the CalligraphyConfig is that this way
it doesn't require constant invocations of CalligraphyConfig.get().

Test Plan:

  • Verified with sample app that the new config option works as expected.

Thorben Primke added 2 commits June 29, 2017 16:11
Summary:
In order to A/B test fonts, this adds an option to the
CalligraphyConfig to provide a fontPath substitution map.
This enables dynamically changing fonts at run time and requires
no changes to XML files.
The logic to substitute the fontPath is in the TypefaceUtils.
The reason the map is set on the TypeFaceUtils instead of the
TypefaceUtils to checked the CalligraphyConfig is that this way
it doesn't require constant invokations to CalligraphyConfig.get().

Test Plan:
- Verified with sample app that the new config option works as expected.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant