Giter Site home page Giter Site logo

Comments (11)

13rac1 avatar 13rac1 commented on May 27, 2024

Since Firefox seems to work fine without the 56-emojione-color.conf file, this is a harmless kludge.

The demo page works without it because it specifically selects the font, but does: http://getemoji.com/ ?

from emojione-color-font.

hackerb9 avatar hackerb9 commented on May 27, 2024

Okay, this is kind of bizarre. It seems 56-emojione-color.conf appears to be doing the reverse of what it is supposed to. I just tested it in Firefox and found out that when I use the current version, I get the problem with Deja Vu replacing some of the Emoji with black and white versions. (I tried it on both the demo page and getemoji with the same results).

The default version:

emojione-dejavu-problems-prepatch
emojione-dejavu-problems-prepatch2

However, after my patch...

But, when I use my patched version of the file, all the emoji show up correctly:

emojione-works-postpatch
emojione-works-postpatch2

Curiouser and curiouser.

from emojione-color-font.

13rac1 avatar 13rac1 commented on May 27, 2024

Are you running fc-cache -f after these changes? I have had many issues with delays in the caching system like this.

from emojione-color-font.

hackerb9 avatar hackerb9 commented on May 27, 2024

I alternated changes so that as soon as the cache updated, I'd see the browser change. Usually it seems to be about 15 to 30 seconds, so I didn't have any problem.

I just tried again with fc-cache -f, with the same results. (By the way, flushing the cache manually didn't make the update happen any faster. I still had to wait about the same amount of time before the browser window updated. I think fontconfig must be using inotify or something similar so that it gets alerted as soon as the config file is edited.)

from emojione-color-font.

hackerb9 avatar hackerb9 commented on May 27, 2024

(Oops, I notice that in my first message I mistakenly left in a line about Firefox working without the entire file. I meant without the particular stanza that I am skipping over. Sorry for the confusion.)

from emojione-color-font.

13rac1 avatar 13rac1 commented on May 27, 2024

I recommend restarting Firefox between changes. It updates, but things go all wrong sometimes. More when changing glyphs though.

from emojione-color-font.

hackerb9 avatar hackerb9 commented on May 27, 2024

I double checked by restarting it after each change and it still behaved the same: the current conf file has the DejaVu smiley faces but when I remove (or make conditional) that stanza, as suggested in my first patch, it works fine. And, of course, my patch also fixes the problem with the Bitstream Vera overriding the default font in Firefox.

Are you not seeing the same behavior on your machine? What version of Firefox are you using? Do you have the DejaVu fonts installed?

from emojione-color-font.

pelegm avatar pelegm commented on May 27, 2024

I am not 100% sure this is the same issue, but I have a similar problem on my Ubuntu 14.04 with Firefox. Each time after installing this package (via the ppa) the default font in Firefox (including but not limited to the font appearing on the tabs) starts looking weird (especially the spacings). In some websites (stack exchange, wolfram alpha) this causes the page to look horrible. I'll add a couple of images.

tabtitle
stacktitle
wolframtitle

from emojione-color-font.

pelegm avatar pelegm commented on May 27, 2024

Compare this with:

tabtitle2
stacktitle2
wolframtitle2

from emojione-color-font.

13rac1 avatar 13rac1 commented on May 27, 2024

@pelegm That's a known issue: https://github.com/eosrei/emojione-color-font#known-issues It's bug in Firefox which you can correct, but will cause it to crash in versions <48. The internal font list is wrong. Nothing I can do AFAIK. @hackerb9 It is related to this issue.

Are you not seeing the same behavior on your machine?

No. Please test it with a stock 16.04 ISO in Virtualbox. You don't need to install to the virtual disk, the Live CD works fine. I know exactly how it works on Ubuntu 14.04/16.04 and Fedora 22.

What version of Firefox are you using?

48, the current repo version.

Do you have the DejaVu fonts installed?

Yes. Stock Linux Mint 18/Ubuntu 16.04 fontconfig, plus my PPA.

FF48+PPA

Related, it's actually not Bitstream being disabled. If you open the fonts and look at the glyphs they are exactly the same as DejaVu. Haha, so much fun! That's why this is distinctly a Firefox problem. If you set gfx.font_rendering.fontconfig.fontlist.enabled to false it displays everything correctly.

I've been extremely busy and haven't been able to test your config until now. Your font config additions, as you know, disable the font pattern matching for sans-serif in Firefox. I implemented it and watched the correct text fonts display on getemoji.com. I wondered why for a moment, then realized the secondary fallbacks were being used.

  <alias binding="strong">
    <family>Segoe UI Emoji</family>
    <prefer><family>EmojiOne Color</family></prefer>
    <default><family>sans-serif</family></default>
  </alias>

That page specifically calls out font-family: Segoe UI Emoji; in the CSS.

So, I tried another page that requires the existing fallback system: https://en.wikipedia.org/wiki/Emoji Ah, there we go, broken emoji. Your config:
your config
The default config:
existing config

Note: You will see problems due to #22 on that page in the "Sample emoji variation sequences", but that's out of scope of this issue.

I'd be happy if we can figure out a permanent solution to this issue, but your current idea isn't it. Please try more ideas! Thanks!

from emojione-color-font.

13rac1 avatar 13rac1 commented on May 27, 2024

The current workaround is described in: https://github.com/eosrei/emojione-color-font#known-issues and #31.

I'm closing this for now. Please add another comment or open a PR if you have ideas for a solution. Thank you!

from emojione-color-font.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.