Skip to content
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

Some emoji doesn't display properly #511

Open
jkriegshauser opened this issue Feb 4, 2024 · 9 comments
Open

Some emoji doesn't display properly #511

jkriegshauser opened this issue Feb 4, 2024 · 9 comments

Comments

@jkriegshauser
Copy link

What were you doing?

Certain emoji (in particular i noticed this with "☁️") does not display properly on the Chromium that comes with FullPageOS, though other emoji does.

What did you expect to happen?

The page as viewed from Chrome running on Windows:
image

Some emojis are fine:
image

What happened instead?

The page as viewed from Chromium on FullPageOS:
image

Note that the cloud emoji is not colored.

The house emoji (🏠) is fine:
image

Was there an error message displayed? What did it say?

No.

Version of FullPageOS?

[Can be found in /etc/fullpageos_version ALWAYS INCLUDE.]

0.13.0

Screenshot(s) showing the problem:

[If applicable. Always include if unsure or reporting UI issues.]

See above.

If you are building FullPageOS - provide a build.log that is created for the build

Downloaded stable image.

I also tried installing:

sudo apt install fonts-noto-color-emoji

and restarted, to no avail

@jkriegshauser
Copy link
Author

jkriegshauser commented Feb 4, 2024

I was able to fix it by loosely following this page, though it has some errors.

What worked:
Install the font:

sudo apt install fonts-noto-color-emoji

Create ~/.config/fontconfig/fonts.conf with the following (note that the page above is missing <fontconfig>)

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <match>
  <test name="family"><string>sans-serif</string></test>
  <edit name="family" mode="prepend" binding="strong">
   <string>Noto Color Emoji</string>
  </edit>
 </match>

 <match>
  <test name="family"><string>serif</string></test>
  <edit name="family" mode="prepend" binding="strong">
   <string>Noto Color Emoji</string>
  </edit>
 </match>

 <match>
  <test name="family"><string>Apple Color Emoji</string></test>
  <edit name="family" mode="prepend" binding="strong">
   <string>Noto Color Emoji</string>
  </edit>
 </match>
</fontconfig>

(Note: if fontconfig exists [it didn't on my install] then more finesse will be required here)

Flush the font cache with:

fc-cache -f -v

Reboot or load the page and it shows the proper cloud emoji:
image

@guysoft
Copy link
Owner

guysoft commented Feb 4, 2024

Hey, if you can post your full working ~/.config/fontconfig/fonts.conf I could add a fix for this.

@jkriegshauser
Copy link
Author

jkriegshauser commented Feb 5, 2024 via email

@SecularSteve
Copy link

If I may make a suggestion, OpenMoji recently got a full update to the Unicode 15 standard:

https://github.com/hfg-gmuend/openmoji/releases/tag/15.0.0

I personally think it would be handy to implement it as the default Emoji setting that comes built-in with the system.
Could double as a fall-back in case of further errors like these.

@guysoft
Copy link
Owner

guysoft commented Feb 7, 2024

@SecularSteve Thanks for the tip:
Related, this is what we do now: #378

@guysoft
Copy link
Owner

guysoft commented Feb 20, 2024

Nightly build are working again.

@jkriegshauser If I make a build with a fix for it could you test it?

@jkriegshauser
Copy link
Author

@guysoft Sure

@guysoft
Copy link
Owner

guysoft commented Mar 6, 2024

didn't forget, I want to fix the username bug first (#525)

@guysoft
Copy link
Owner

guysoft commented Jun 18, 2024

Didn't forget, but I am really really swamped.

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

No branches or pull requests

3 participants