Skip to content

Add dynamic font support for system-wide GSans Flex#5

Open
NotBlazeee28 wants to merge 3 commits into
halcyonproject:16.2from
NotBlazeee28:16.2
Open

Add dynamic font support for system-wide GSans Flex#5
NotBlazeee28 wants to merge 3 commits into
halcyonproject:16.2from
NotBlazeee28:16.2

Conversation

@NotBlazeee28
Copy link
Copy Markdown

No description provided.

kdrag0n and others added 2 commits May 27, 2026 15:52
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants