Coder Social home page Coder Social logo

Comments (10)

abouvier avatar abouvier commented on June 21, 2024 1

I finally managed to make the fonts identical to when the gfx.font_rendering.fontconfig.fontlist.enabled option was set to false. It also makes the configuration file simpler. All the <match> tags are replaced by <alias> tags in 56-emojione-color.conf:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <alias>
    <family>sans-serif</family>
    <prefer>
      <family>EmojiOne Color</family>
      <family>Bitstream Vera Sans</family>
    </prefer>
  </alias>
  <alias>
    <family>serif</family>
    <prefer>
      <family>EmojiOne Color</family>
      <family>Bitstream Vera Serif</family>
    </prefer>
  </alias>
  <alias>
    <family>monospace</family>
    <prefer>
      <family>EmojiOne Color</family>
      <family>Bitstream Vera Sans Mono</family>
    </prefer>
  </alias>

  <!-- Add emoji generic family -->
  <alias binding="strong">
    <family>emoji</family>
    <default>
      <family>EmojiOne Color</family>
    </default>
  </alias>

  <!-- Alias requests for the other emoji fonts -->
  <alias binding="strong">
    <family>Apple Color Emoji</family>
    <prefer>
      <family>EmojiOne Color</family>
    </prefer>
    <default>
      <family>sans-serif</family>
    </default>
  </alias>
  <alias binding="strong">
    <family>Segoe UI Emoji</family>
    <prefer>
      <family>EmojiOne Color</family>
    </prefer>
    <default>
      <family>sans-serif</family>
    </default>
  </alias>
  <alias binding="strong">
    <family>Noto Color Emoji</family>
    <prefer>
      <family>EmojiOne Color</family>
    </prefer>
    <default>
      <family>sans-serif</family>
    </default>
  </alias>
</fontconfig>

The result:

$ fc-match -s sans | head -n3
Vera.ttf: "Bitstream Vera Sans" "Roman"
EmojiOneColor-SVGinOT.ttf: "EmojiOne Color" "Regular"
DejaVuSans.ttf: "DejaVu Sans" "Book"

This can also be shortened to:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <alias>
    <family>sans-serif</family>
    <prefer>
      <family>EmojiOne Color</family>
      <family>Bitstream Vera Sans</family>
    </prefer>
  </alias>
  <alias>
    <family>serif</family>
    <prefer>
      <family>EmojiOne Color</family>
      <family>Bitstream Vera Serif</family>
    </prefer>
  </alias>
  <alias>
    <family>monospace</family>
    <prefer>
      <family>EmojiOne Color</family>
      <family>Bitstream Vera Sans Mono</family>
    </prefer>
  </alias>
  <match>
    <test name="family" compare="contains">
      <string>emoji</string>
    </test>
    <edit name="family" mode="prepend" binding="same">
      <string>EmojiOne Color</string>
    </edit>
  </match>
</fontconfig>

from emojione-color-font.

13rac1 avatar 13rac1 commented on June 21, 2024

Yes. I'm not sure of a solution for FF 55+ right now.

from emojione-color-font.

abouvier avatar abouvier commented on June 21, 2024

What is the cause of the problem actually? Why this option solved the problem? Without it, the font appears to be bold. But is it still the Bitstream Vera font? Why the bold variant is showed instead of the regular one?

from emojione-color-font.

jorgicio avatar jorgicio commented on June 21, 2024

In fact, that parameter was removed in Firefox 55. So this won't work anymore.
It seems the problem is with dejavu, because when I didn't have this font installed, the rest was rendered flawlessly.

from emojione-color-font.

Teyro avatar Teyro commented on June 21, 2024

I have the same problem here! So what can i do? Because i use Dejava fonts for my KDE Desktop :S

from emojione-color-font.

coopsmoss avatar coopsmoss commented on June 21, 2024

Same issue here, driving me mad. How do I remove the font altogether?

from emojione-color-font.

jorgicio avatar jorgicio commented on June 21, 2024

I confirm the fix works, so I created the patches for both emojione and twitter emoji font packages and fixed in Gentoo. Now the changes were upgraded for both packages in my repo.
Thanks!

from emojione-color-font.

13rac1 avatar 13rac1 commented on June 21, 2024

@abouvier Thank you!

@jorgicio Do you mean you are making PRs?

I'll update both. I've been delaying making the last release of this project hoping Ranks would revert their license.

from emojione-color-font.

jorgicio avatar jorgicio commented on June 21, 2024

@eosrei Not exactly, but I patched the sources on my Gentoo overlay. However, I can attach both patches if you want them. Also you can check them if you find some observations.
For Emojione: https://paste.pound-python.org/show/RWe7w3zkDalQLavOqFVi
For Twemoji: https://paste.pound-python.org/show/uUsDh2g3hT2uVeatnYaY/

from emojione-color-font.

DeeDeeG avatar DeeDeeG commented on June 21, 2024

Would these patches improve the project?

I would be happy to apply them and make a PR, or anyone could add them with git am [insert filename-of-patch-file-here.

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.