Add dynamic font support for system-wide GSans Flex#5
Open
NotBlazeee28 wants to merge 3 commits into
Open
Conversation
Only using user-selected fonts for a subset of system apps leads to an inconsistent visual experience. While we've already applied them to the system's Material UI themes, many apps have hard-code references to sans-serif (whether it's through XML styles or Typeface.SANS_SERIF), so it is also necessary to override Typeface fonts at runtime. Changing overlays causes OverlayManagerService to schedule ApplicationInfo updates for affected apps, which forces a configuration change by incrementing Configuration#assetsSeq. TODO: figure out why not all apps get consistent configuration updates until manually relaunching activities Change-Id: I0e44255ce11b77ab4b7d571360c091bbc9b75112
Similar to 1b8f450 "graphics: Override system fonts with user-selected overlays" Google Sans is hardcoded in a lot of places, replace those too. Change-Id: I2d0c75a12f58aee232b44e0740d140c4b2dc051b
optimized overriding of system fonts without reflection usage and wider font override support [neobuddy89: Update to our default fonts.] Change-Id: I4940b525584a3ad7c83193ff2484e6726c5437f9 Signed-off-by: rmp22 <195054967+rmp22@users.noreply.github.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.