Giter Club home page Giter Club logo

Comments (8)

IBBoard avatar IBBoard commented on May 23, 2024

This could be a game of cat-and-mouse, but the following addition to fonts.config appears to fix it:

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

Is that reasonable, or should there be some other arcane fonts.config changes that fix the cause rather than patching over the problem?

[edit] Aaaaand, that's not a proper solution (because "family" doesn't REALLY mean "family", it just means "arbitrary identifying string")

https://en.wikipedia.org/wiki/Regional_Indicator_Symbol#Examples has a Symbola block that uses Symbola and renders the Symbola placeholders. That "fix" works on the Unicode page because they've got "Times" just before Symbola. And there was me reading configs under /etc/fonts/ and thinking I'd found actual families to override 😕

from emojione-color-font.

13rac1 avatar 13rac1 commented on May 23, 2024

Ah, interesting. I no longer have Symbola installed on my system. Ligatures (the font feature used to make these ZJW/etc work) require all characters to be from the same font according to all the tests I've done. It's actually why I removed 1-9, #, and *: b704233 They are required to make the combo character ligatures, such as keycaps work. Problem is they override 1-9 characters everywhere, and that's not going to work.

from emojione-color-font.

13rac1 avatar 13rac1 commented on May 23, 2024

Hmm... as for adding another name match, I'd rather override the more standard Apple Color Emoji than override Times. It's an earlier match on that same page. Should cause less unintended consequences?

from emojione-color-font.

13rac1 avatar 13rac1 commented on May 23, 2024

less unintended consequences

When I add all whitespaces to the font for Linux in a few days, I am using the DejaVu family space widths. So, it will "break" Times space widths.

from emojione-color-font.

IBBoard avatar IBBoard commented on May 23, 2024

Yep, that seems to work.

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

Also, it is 1) a more apt and fitting override and b) likely to be commonly declared before Symbola because of people going "Teh Applez can have teh shineez" 😊

from emojione-color-font.

13rac1 avatar 13rac1 commented on May 23, 2024

Haha, related, this is a good example of a bug in Chrome's font rendering: http://unicode.org/emoji/charts/emoji-zwj-sequences.html It sizes the tables <td> as if all the characters were there, without the ligatures (aka in this case ZWJ.)
chrome-doesnt-know-ligatures

from emojione-color-font.

13rac1 avatar 13rac1 commented on May 23, 2024

Fixed, I gave you commit author ;) Thanks!

from emojione-color-font.

13rac1 avatar 13rac1 commented on May 23, 2024

An update to this: https://github.com/eosrei/emojione-color-font/blob/d0d2eb895cbff09415e9a875e127035ba257ea54/linux/fontconfig/user-bitstream-vera-fonts.conf#L129

I expanded the aliasing to cover the three other emoji fonts and "invented" 💡 an emoji generic family. Should provide all of the coverage needed.

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.