-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix: add Noto Color Emoji to support flags on Windows #35790
Conversation
@aimane-chnaif Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@dragnoir please merge main |
@@ -8,7 +8,7 @@ import type FontFamilyStyles from './types'; | |||
const fontFamily: FontFamilyStyles = { | |||
EXP_NEUE_ITALIC: 'ExpensifyNeue-Italic, Segoe UI Emoji, Noto Color Emoji', | |||
EXP_NEUE_BOLD: multiBold, | |||
EXP_NEUE: 'ExpensifyNeue-Regular, Segoe UI Emoji, Noto Color Emoji', | |||
EXP_NEUE: 'ExpensifyNeue-Regular, Segoe UI Emoji', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting. Noto Color Emoji
was already added here even though it was unused?
Why was this removed only on this font?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Segoe UI Emoji will be applied first, the order is important.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this removed only on this font? - EXP_NEUE
You didn't answer this. There are 8 fonts where Noto Color Emoji
is added at the end
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And what happens if we keep Noto Color Emoji
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For emoji, we only use EXP_NEUE.
if we keep Noto Color Emoji here, we can't have the needed order, Noto Color Emoji should be after ExpensifyNeue-Regular.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am still curious why Noto Color Emoji
was added even before this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know, but what I am sure about is:
- it was not working, it was there for nothing
- On windows, Segoe UI Emoji will be used because it's a system font.
For now, it's still there, eeven if it has a specific use case, we are keeping it. We here just removing Segoe UI Emoji (it's only a Windows OS default font)
@aimane-chnaif merged with main and checked for no regression with issues you mentioned |
Reviewer Checklist
Screenshots/VideosiOS: Nativeios.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good to me. I'm set up to test this in dev on Windows. But I've made a note to check it out once this PR hits staging.
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to production by https://github.com/thienlnam in version: 1.4.41-12 🚀
|
@aimane-chnaif do you think I can get paid for this? |
Revert "Merge pull request #35790 from dragnoir/33653-fix"
🚀 Deployed to staging by https://github.com/deetergp in version: 1.4.54-0 🚀
|
Issue #33653 is not fixed in windows. Evidence is attached here. |
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.4.54-4 🚀
|
Details
The default windows font is not supporting flags as emoji. We replace it with Noto Color Emoji to support flags on Windows platform.
Fixed Issues
$ #33653
PROPOSAL: #33653 (comment)
Tests
Offline tests
QA Steps
On windows OS, open the emoji picker and check flags
Verify that no errors appear in the JS console
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop