Repository navigation
feat(emoji): add setting to render high-resolution system emojis in chats - #2256
Conversation
08c3b58 to
e97e27c
Compare
mpretty-cyro
left a comment
There was a problem hiding this comment.
Thanks for your contribution here, there are a few changes which need to be made before this could be merged
|
Thanks for the review @mpretty-cyro! Addressed all feedback:
Verified with |
|
also updated EmojiProvider so reaction emojis, reaction pills, the emoji picker and input search bar use the system font too when the setting is on instead of still pulling the 66x66 spritesheets |
|
Any updates ? |
I think this one is mostly good, I just need to do a quick test and add the new strings to Crowdin |
With "Use System Emoji" on, reaction pills, the reaction bar and the picker drew every emoji with the device font, so an emoji newer than that font showed as an empty box or as its parts squeezed together. They now use the bundled image for anything the font can't draw as a single glyph, and non-emoji reaction text gets the existing crossed-square fallback again.
|
@igotlinux Thanks again for your contribution, I managed to get through testing this today and made the following changes before merging:
|
First time contributor checklist
Fixes #1234syntax (Fixes Low-res emojis #53)Description
Fixes #53
Session currently uses a legacy 66x66px bitmap spritesheet pipeline (
EmojiProvider/EmojiTextView) inherited from older Signal code. On modern high-DPI screens, these small bitmap tiles appear blurry and pixelated when scaled up.This PR adds a "Use System Emojis" toggle in Settings → Chats (disabled by default to avoid missing glyphs on older devices) that allows messages to render sharp, high-resolution vector emojis using the device's native emoji font rather than the low-resolution spritesheets.
Changes:
USE_SYSTEM_EMOJIkey and getter/setter preferences inTextSecurePreferences.kt(defaults tofalse).EmojiTextView.javato checkisUseSystemEmojiEnabled()before parsing/replacing emoji spans; when enabled, it skips the bitmap spritesheet replacement and renders the native Unicode characters.ChatsPreferenceScreen.ktwith dedicated QA tags incontent-descriptions, and state handling inChatsPreferenceViewModel.kt.Testing:
compilePlayDebugKotlin,compilePlayDebugJavaWithJavac, andtestPlayDebugUnitTest(all tests pass).