Giter Site home page Giter Site logo

Comments (11)

13rac1 avatar 13rac1 commented on May 28, 2024

Please run the tests https://github.com/eosrei/emojione-color-font/tree/master/linux/tests It'll confirm whether your fontconfig is setup correctly. You'll need both files.

from emojione-color-font.

TamasBarta avatar TamasBarta commented on May 28, 2024

Results:

diff current-results.test expected-results.test
Font: sans                                                         Font: sans
Vera.ttf: "DejaVu Sans" "Roman"                                 |  Vera.ttf: "Bitstream Vera Sans" "Roman"
EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"             EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"

Font: sans-serif                                                   Font: sans-serif
Vera.ttf: "DejaVu Sans" "Roman"                                 |  Vera.ttf: "Bitstream Vera Sans" "Roman"
EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"             EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"

Font: serif                                                        Font: serif
VeraSe.ttf: "DejaVu Serif" "Roman"                              |  VeraSe.ttf: "Bitstream Vera Serif" "Roman"
EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"             EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"

Font: mono                                                         Font: mono
VeraMono.ttf: "DejaVu Sans Mono" "Roman"                        |  VeraMono.ttf: "Bitstream Vera Sans Mono" "Roman"
EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"             EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"

Font: monospace                                                    Font: monospace
VeraMono.ttf: "DejaVu Sans Mono" "Roman"                        |  VeraMono.ttf: "Bitstream Vera Sans Mono" "Roman"
EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"             EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"

Font: Bitstream Vera Sans                                          Font: Bitstream Vera Sans
DejaVuSans.ttf: "DejaVu Sans" "Book"                            |  Vera.ttf: "Bitstream Vera Sans" "Roman"
DejaVuSans-Bold.ttf: "DejaVu Sans" "Bold"                       |  EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"

Font: Bitstream Vera Serif                                         Font: Bitstream Vera Serif
DejaVuSerif.ttf: "DejaVu Serif" "Book"                          |  VeraSe.ttf: "Bitstream Vera Serif" "Roman"
DejaVuSerif-Bold.ttf: "DejaVu Serif" "Bold"                     |  EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"

Font: Bitstream Vera Sans Mono                                     Font: Bitstream Vera Sans Mono
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"                   |  VeraMono.ttf: "Bitstream Vera Sans Mono" "Roman"
DejaVuSansMono-Bold.ttf: "DejaVu Sans Mono" "Bold"              |  EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"

Font: emoji                                                        Font: emoji
EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"             EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"
Vera.ttf: "DejaVu Sans" "Roman"                                 |  Vera.ttf: "Bitstream Vera Sans" "Roman"

Font: Emoji One Color                                              Font: Emoji One Color
EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"             EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"
Vera.ttf: "DejaVu Sans" "Roman"                                 |  Vera.ttf: "Bitstream Vera Sans" "Roman"

Font: Apple Color Emoji                                            Font: Apple Color Emoji
EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"             EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"
Vera.ttf: "DejaVu Sans" "Roman"                                 |  Vera.ttf: "Bitstream Vera Sans" "Roman"

Font: Segoe UI Emoji                                               Font: Segoe UI Emoji
EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"             EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"
Vera.ttf: "DejaVu Sans" "Roman"                                 |  Vera.ttf: "Bitstream Vera Sans" "Roman"

Font: Noto Color Emoji                                             Font: Noto Color Emoji
EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"             EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"
Vera.ttf: "DejaVu Sans" "Roman"                                 |  Vera.ttf: "Bitstream Vera Sans" "Roman"

Fontconfig tests: FAIL

I investigated a little more. Your fontconfig is stored as /etc/fonts/conf.avail/56-emojione-color-font.conf.

I also have 57-dejavu-sans.conf there:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<!-- /etc/fonts/conf.d/57-dejavu-sans.conf

     Define aliasing and other fontconfig settings for
     DejaVu Sans.

     © 2006-2008 Nicolas Mailhot <nicolas.mailhot at laposte.net>
-->
<fontconfig>
  <!-- Font substitution rules -->
  <alias binding="same">
    <family>Arev Sans</family>
    <accept>
      <family>DejaVu Sans</family>
    </accept>
  </alias>
  <alias binding="same">
    <family>Bepa</family>
    <accept>
      <family>DejaVu Sans</family>
    </accept>
  </alias>
  <alias binding="same">
    <family>Bitstream Prima Sans</family>
    <accept>
      <family>DejaVu Sans</family>
    </accept>
  </alias>
  <alias binding="same">
    <family>Bitstream Vera Sans</family>
    <accept>
      <family>DejaVu Sans</family>
    </accept>
  </alias>
  <alias binding="same">
    <family>DejaVu LGC Sans</family>
    <accept>
      <family>DejaVu Sans</family>
    </accept>
  </alias>
  <alias binding="same">
    <family>Hunky Sans</family>
    <accept>
      <family>DejaVu Sans</family>
    </accept>
  </alias>
  <alias binding="same">
    <family>Olwen Sans</family>
    <accept>
      <family>DejaVu Sans</family>
    </accept>
  </alias>
  <alias binding="same">
    <family>SUSE Sans</family>
    <accept>
      <family>DejaVu Sans</family>
    </accept>
  </alias>
  <alias binding="same">
    <family>Verajja</family>
    <accept>
      <family>DejaVu Sans</family>
    </accept>
  </alias>
  <!-- In case VerajjaPDA stops declaring itself as Verajja -->
  <alias binding="same">
    <family>VerajjaPDA</family>
    <accept>
      <family>DejaVu Sans</family>
    </accept>
  </alias>
  <!-- Generic name assignment -->
  <alias>
    <family>DejaVu Sans</family>
    <default>
      <family>sans-serif</family>
    </default>
  </alias>
  <!-- Generic name aliasing -->
  <alias>
    <family>sans-serif</family>
    <prefer>
      <family>DejaVu Sans</family>
    </prefer>
  </alias>
</fontconfig>

I'm groping in the dark, but I hope I managed to provide something useful.

from emojione-color-font.

13rac1 avatar 13rac1 commented on May 28, 2024

The 57-dejavu-sans.conf looks standard. I did a number of tests with @edgemaster in #29 to test this fontconfig, but I've personally only used it on Ubuntu/Fedora. The problem probably is, as you can see, something in your fontconfig is identifying Bitstream Vera incorrectly as DejaVu:

Vera.ttf: "DejaVu Sans" "Roman"                                 |  Vera.ttf: "Bitstream Vera Sans" "Roman"

You could try changing the 56 to another number??? The output on your system needs to match the expected file. You can do tests with fc-match sans | head -n2 or similar to determine what is different in your fontconfig.

(I'm amazed how much hassle fontconfig has been. I thought making the font itself was going to be the most difficult part.)

from emojione-color-font.

IgnoredAmbience avatar IgnoredAmbience commented on May 28, 2024

Do you also have ttf-bitstream-vera installed? I've only got it marked as an optional dependency ("for bug-free font fallback") due to a previous comment on the AUR page complaining that it was a mandatory installation.

from emojione-color-font.

13rac1 avatar 13rac1 commented on May 28, 2024

Ah ha! YES. Bitstream Vera is required to use the provided fontconfig. It is required in my Launchpad PPA.

To keep DejaVu, such in #36, the (only?) solution is to manually subset DejaVu to remove all emoji characters using NotoTools.

Ideal long term solution: DejaVu must be modified to keep all Unicode Emoji out of the default font like the default Windows and OS X font families. Edit: Maybe add a DejaVu Emoji font separately.. IDK

from emojione-color-font.

IgnoredAmbience avatar IgnoredAmbience commented on May 28, 2024

Released 1.0-2 to AUR with ttf-bitstream-vera as a required dependency. Apologies for missing this previously.

from emojione-color-font.

13rac1 avatar 13rac1 commented on May 28, 2024

Great! There are many options to create custom fontconfigs or subset fonts, but I want to provide a general "just works" for most users. Advanced users know what to do.

from emojione-color-font.

13rac1 avatar 13rac1 commented on May 28, 2024

@TamasBarta Can you confirm if BitstreamVera is installed?

from emojione-color-font.

TamasBarta avatar TamasBarta commented on May 28, 2024

Sorry for being unavailable lately. I have BitstreamVera installed, and DejaVu as well. The packages I have installed (for those familiar with Arch) are ttf-dejavu and ttf-bitstream-vera.
Also I installed the latest version of edgemaster's package from AUR, but that made no difference.

from emojione-color-font.

13rac1 avatar 13rac1 commented on May 28, 2024

I've installed Evolution on my machine (Ubuntu 14.04) version: 3.10.4 and have reproduced this issue. Steps to reproduce:

  1. Install evolution
  2. Start evolution and skip setup wizard
  3. Create a new email
  4. Type some characters
  5. Save the Draft
  6. View the Draft in the preview pane.

DejaVu being selected instead of Vera by your fontconfig is a separate issue:

Vera.ttf: "DejaVu Sans" "Roman"                                 |  Vera.ttf: "Bitstream Vera Sans" "Roman"

from emojione-color-font.

13rac1 avatar 13rac1 commented on May 28, 2024

Note, this issue is open until I add it to both emoji font readme files. AFAIK there's nothing I can do in the font file or fontconfig to change this. A bug report should be opened against Evolution regarding it.

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.