13rac1 / emojione-color-font

End of Life. Switch to https://github.com/eosrei/twemoji-color-font
Other
914 stars 46 forks source link

[Ubuntu 16.04] DejaVu version gets priority over BitStream Vera and EmojiOne Color #42

Closed qnub closed 8 years ago

qnub commented 8 years ago

Steps to reproduce:

13-06-2016 12-35-23

13-06-2016 12-40-53

fc-match -s serif

DejaVuSerif.ttf: "DejaVu Serif" "Book"
EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"
EmojiOneColor-SVGinOT.ttf: "EmojiOne Color" "Regular"
DejaVuSerif-Bold.ttf: "Bitstream Vera Serif" "Bold"
DejaVuSerif-Italic.ttf: "Bitstream Vera Serif" "Italic"
DejaVuSerif-BoldItalic.ttf: "Bitstream Vera Serif" "Bold Italic"
Times_New_Roman.ttf: "Times New Roman" "Обычный"
n021003l.pfb: "Nimbus Roman No9 L" "Regular"
Kinnari.ttf: "Kinnari" "Regular"
Norasi.ttf: "Norasi" "Regular"
KhmerOS.ttf: "Khmer OS" "Regular"
NanumMyeongjo.ttf: "NanumMyeongjo" "Regular"
Lohit-Punjabi.ttf: "Lohit Punjabi" "Regular"
lklug.ttf: "LKLUG" "Regular"
FreeSerif.ttf: "FreeSerif" "Обычный"
FreeSans.ttf: "FreeSans" "Обычный"
FreeMono.ttf: "FreeMono" "Обычный"
opens___.ttf: "OpenSymbol" "Regular"
KacstOne.ttf: "KacstOne" "Regular"
FiraSans-Regular.ttf: "Fira Sans" "Regular"
fontawesome-webfont.ttf: "FontAwesome" "Regular"
NanumGothic.ttf: "NanumGothic" "Regular"
fonts-japanese-gothic.ttf: "TakaoPGothic" "Regular"
Laksaman.ttf: "Laksaman" "Regular"
Courier_New.ttf: "Courier New" "Обычный"
Padauk-book.ttf: "Padauk Book" "Regular"
DejaVuSans.ttf: "Bitstream Vera Sans" "Book"
DejaVuSansMono.ttf: "Bitstream Vera Sans Mono" "Book"
Sawasdee.ttf: "Sawasdee" "Regular"
PTC55F.ttf: "PT Sans Caption" "Regular"
Roboto-Regular.ttf: "Roboto" "Regular"
TibetanMachineUni.ttf: "Tibetan Machine Uni" "Regular"
AbyssinicaSIL-R.ttf: "Abyssinica SIL" "Regular"
STIXGeneral-Regular.otf: "STIXGeneral" "Regular"
STIX-Regular.otf: "STIX" "Regular"
STIXNonUnicode-Regular.otf: "STIXNonUnicode" "Regular"
mplus-1c-regular.ttf: "M+ 1c" "regular"
NotoSans-Regular.ttf: "Noto Sans" "Regular"
NotoSansCJK-Regular.ttc: "Noto Sans CJK JP" "Regular"
Anonymice Powerline.ttf: "Anonymous Pro for Powerline" "Regular"
anonymous Pro-Powerline.ttf: "Anonymous Pro" "Regular"
SFUIDisplay-Regular.otf: "SF UI Display" "Обычный"
iosevka-regular.ttf: "Iosevka" "Regular"
NanumBarunGothic.ttf: "NanumBarunGothic" "Regular"
Ubuntu-C.ttf: "Ubuntu Condensed" "Regular"
Ubuntu-R.ttf: "Ubuntu" "Regular"
Waree.ttf: "Waree" "Regular"
s050000l.pfb: "Standard Symbols L" "Regular"
LiberationSansNarrow-Regular.ttf: "Liberation Sans Narrow" "Regular"
Existence-Light.ttf: "Existence" "Light"
PTF75F.ttf: "PT Serif" "Bold"
STIX-Italic.otf: "STIX" "Italic"
LiberationSans-Italic.ttf: "Liberation Sans" "Italic"
DejaVuSans-BoldOblique.ttf: "Bitstream Vera Sans" "Bold Oblique"
Webdings.ttf: "Webdings" "Обычный"

fc-match -s sans-serif

DejaVuSans.ttf: "DejaVu Sans" "Book"
EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"
EmojiOneColor-SVGinOT.ttf: "EmojiOne Color" "Regular"
DejaVuSans-Bold.ttf: "Bitstream Vera Sans" "Bold"
DejaVuSans-Oblique.ttf: "Bitstream Vera Sans" "Oblique"
DejaVuSans-BoldOblique.ttf: "Bitstream Vera Sans" "Bold Oblique"
Verdana.ttf: "Verdana" "Обычный"
Arial.ttf: "Arial" "Обычный"
n019003l.pfb: "Nimbus Sans L" "Regular"
Waree.ttf: "Waree" "Regular"
Laksaman.ttf: "Laksaman" "Regular"
NotoSansCJK-Regular.ttc: "Noto Sans CJK JP" "Regular"
KhmerOS.ttf: "Khmer OS" "Regular"
NanumGothic.ttf: "NanumGothic" "Regular"
Lohit-Punjabi.ttf: "Lohit Punjabi" "Regular"
lklug.ttf: "LKLUG" "Regular"
FreeSans.ttf: "FreeSans" "Обычный"
FreeMono.ttf: "FreeMono" "Обычный"
FreeSerif.ttf: "FreeSerif" "Обычный"
opens___.ttf: "OpenSymbol" "Regular"
Norasi.ttf: "Norasi" "Regular"
KacstOne.ttf: "KacstOne" "Regular"
FiraSans-Regular.ttf: "Fira Sans" "Regular"
fontawesome-webfont.ttf: "FontAwesome" "Regular"
Courier_New.ttf: "Courier New" "Обычный"
Padauk-book.ttf: "Padauk Book" "Regular"
DejaVuSansMono.ttf: "Bitstream Vera Sans Mono" "Book"
DejaVuSerif.ttf: "Bitstream Vera Serif" "Book"
Sawasdee.ttf: "Sawasdee" "Regular"
PTC55F.ttf: "PT Sans Caption" "Regular"
NanumMyeongjo.ttf: "NanumMyeongjo" "Regular"
Roboto-Regular.ttf: "Roboto" "Regular"
TibetanMachineUni.ttf: "Tibetan Machine Uni" "Regular"
AbyssinicaSIL-R.ttf: "Abyssinica SIL" "Regular"
STIXGeneral-Regular.otf: "STIXGeneral" "Regular"
STIX-Regular.otf: "STIX" "Regular"
STIXNonUnicode-Regular.otf: "STIXNonUnicode" "Regular"
mplus-1c-regular.ttf: "M+ 1c" "regular"
NotoSans-Regular.ttf: "Noto Sans" "Regular"
Anonymice Powerline.ttf: "Anonymous Pro for Powerline" "Regular"
anonymous Pro-Powerline.ttf: "Anonymous Pro" "Regular"
SFUIDisplay-Regular.otf: "SF UI Display" "Обычный"
iosevka-regular.ttf: "Iosevka" "Regular"
NanumBarunGothic.ttf: "NanumBarunGothic" "Regular"
Ubuntu-C.ttf: "Ubuntu Condensed" "Regular"
Ubuntu-R.ttf: "Ubuntu" "Regular"
s050000l.pfb: "Standard Symbols L" "Regular"
LiberationSansNarrow-Regular.ttf: "Liberation Sans Narrow" "Regular"
Existence-Light.ttf: "Existence" "Light"
PTF75F.ttf: "PT Serif" "Bold"
STIX-Italic.otf: "STIX" "Italic"
LiberationSans-Italic.ttf: "Liberation Sans" "Italic"
Webdings.ttf: "Webdings" "Обычный"

fc-match -s monospace

DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"
EmojiOneColor-SVGinOT.ttf: "EmojiOne Color" "Regular"
PowerlineSymbols.otf: "PowerlineSymbols" "Medium"
Andale_Mono.ttf: "Andale Mono" "Обычный"
Courier_New.ttf: "Courier New" "Обычный"
Courier_New_Italic.ttf: "Courier New" "Курсив"
n022003l.pfb: "Nimbus Mono L" "Regular"
TlwgTypo.ttf: "Tlwg Typo" "Regular"
TlwgTypist.ttf: "Tlwg Typist" "Regular"
NotoSansCJK-Regular.ttc: "Noto Sans Mono CJK JP" "Regular"
KhmerOSsys.ttf: "Khmer OS System" "Regular"
NanumGothic.ttf: "NanumGothic" "Regular"
DejaVuSans.ttf: "Bitstream Vera Sans" "Book"
DejaVuSans-Bold.ttf: "Bitstream Vera Sans" "Bold"
DejaVuSans-Oblique.ttf: "Bitstream Vera Sans" "Oblique"
DejaVuSans-BoldOblique.ttf: "Bitstream Vera Sans" "Bold Oblique"
Lohit-Punjabi.ttf: "Lohit Punjabi" "Regular"
lklug.ttf: "LKLUG" "Regular"
FreeMono.ttf: "FreeMono" "Обычный"
FreeSans.ttf: "FreeSans" "Обычный"
FreeSerif.ttf: "FreeSerif" "Обычный"
opens___.ttf: "OpenSymbol" "Regular"
Norasi.ttf: "Norasi" "Regular"
KacstOne.ttf: "KacstOne" "Regular"
FiraSans-Regular.ttf: "Fira Sans" "Regular"
fontawesome-webfont.ttf: "FontAwesome" "Regular"
Laksaman.ttf: "Laksaman" "Regular"
Padauk-book.ttf: "Padauk Book" "Regular"
DejaVuSerif.ttf: "Bitstream Vera Serif" "Book"
Sawasdee.ttf: "Sawasdee" "Regular"
PTC55F.ttf: "PT Sans Caption" "Regular"
NanumMyeongjo.ttf: "NanumMyeongjo" "Regular"
Roboto-Regular.ttf: "Roboto" "Regular"
TibetanMachineUni.ttf: "Tibetan Machine Uni" "Regular"
AbyssinicaSIL-R.ttf: "Abyssinica SIL" "Regular"
STIXGeneral-Regular.otf: "STIXGeneral" "Regular"
STIX-Regular.otf: "STIX" "Regular"
STIXNonUnicode-Regular.otf: "STIXNonUnicode" "Regular"
mplus-1c-regular.ttf: "M+ 1c" "regular"
NotoSans-Regular.ttf: "Noto Sans" "Regular"
Anonymice Powerline.ttf: "Anonymous Pro for Powerline" "Regular"
anonymous Pro-Powerline.ttf: "Anonymous Pro" "Regular"
SFUIDisplay-Regular.otf: "SF UI Display" "Обычный"
iosevka-regular.ttf: "Iosevka" "Regular"
NanumBarunGothic.ttf: "NanumBarunGothic" "Regular"
Ubuntu-C.ttf: "Ubuntu Condensed" "Regular"
Ubuntu-R.ttf: "Ubuntu" "Regular"
Waree.ttf: "Waree" "Regular"
s050000l.pfb: "Standard Symbols L" "Regular"
LiberationSansNarrow-Regular.ttf: "Liberation Sans Narrow" "Regular"
Existence-Light.ttf: "Existence" "Light"
PTF75F.ttf: "PT Serif" "Bold"
STIX-Italic.otf: "STIX" "Italic"
LiberationSans-Italic.ttf: "Liberation Sans" "Italic"
Webdings.ttf: "Webdings" "Обычный"
13rac1 commented 8 years ago

Thank you for the great details!

I don't see Bitstream Vera on your list. Do you have it installed?

You have two versions of the font installed: < V1.1 and V1.1+. EmojiOne rebranded to remove the space, so I changed the internal name in V1.1. You should remove the version with the space.

qnub commented 8 years ago

Bitstream Vera installed ver. 1.10-8 EmojiOne ver. 1.2-1 from ppa

13rac1 commented 8 years ago

Your output shows:

$ fc-match -s sans-serif
DejaVuSans.ttf: "DejaVu Sans" "Book"
EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"
EmojiOneColor-SVGinOT.ttf: "EmojiOne Color" "Regular"
DejaVuSans-Bold.ttf: "Bitstream Vera Sans" "Bold"

Mine, yes on Ubuntu 14.04, shows:

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

The specific issue on your machine is:

DejaVuSans-Bold.ttf: "Bitstream Vera Sans" "Bold"

DejaVu is being selected instead of Bitstream Vera. Can you select Vera in another program such as LibreOffice?

qnub commented 8 years ago

Yeah, Bitstream Vera is selectable in any application. Sans, sans mono and serif.

14-06-2016 11-55-04

13rac1 commented 8 years ago

How strange. I've done no tests in 16.10 since it won't be released until October. I'll add this to my todo list.

Can you give the output of a direct request for Vera Serif?

$ fc-match -s "Bitstream Vera Serif" | head -n2
VeraSe.ttf: "Bitstream Vera Serif" "Roman"
EmojiOneColor-SVGinOT.ttf: "EmojiOne Color" "Regular"
qnub commented 8 years ago

Oh, i'm sorry. My bad :( I have Ubuntu 16.04 x64. I'll fix initial post.

13rac1 commented 8 years ago

Ah ok! That makes more sense. I was surprised anyone was running 16.10 yet.

13rac1 commented 8 years ago

Also your output from:

$ ls /usr/share/fonts/truetype/ttf-bitstream-vera/
VeraBd.ttf  VeraIt.ttf    VeraMoBI.ttf  VeraMono.ttf  VeraSe.ttf
VeraBI.ttf  VeraMoBd.ttf  VeraMoIt.ttf  VeraSeBd.ttf  Vera.ttf
qnub commented 8 years ago

fc-match -s "Bitstream Vera Serif" | head -n2

VeraSe.ttf: "Bitstream Vera Serif" "Roman"
DejaVuSerif.ttf: "DejaVu Serif" "Book"

ls /usr/share/fonts/truetype/ttf-bitstream-vera/

drwxr-xr-x  2 root root  4096 июн 14 01:35 .
drwxr-xr-x 26 root root  4096 июн 14 01:35 ..
-rw-r--r--  1 root root 58716 апр 16  2003 VeraBd.ttf
-rw-r--r--  1 root root 63208 апр 16  2003 VeraBI.ttf
-rw-r--r--  1 root root 63684 апр 16  2003 VeraIt.ttf
-rw-r--r--  1 root root 49052 апр 16  2003 VeraMoBd.ttf
-rw-r--r--  1 root root 55032 апр 16  2003 VeraMoBI.ttf
-rw-r--r--  1 root root 54508 апр 16  2003 VeraMoIt.ttf
-rw-r--r--  1 root root 49224 апр 16  2003 VeraMono.ttf
-rw-r--r--  1 root root 58736 апр 16  2003 VeraSeBd.ttf
-rw-r--r--  1 root root 60280 апр 16  2003 VeraSe.ttf
-rw-r--r--  1 root root 65932 апр 16  2003 Vera.ttf
13rac1 commented 8 years ago

Have you removed the second older version of the emoji font?

qnub commented 8 years ago

What i've done:

13rac1 commented 8 years ago

I've been really busy.

The main issue is that we need to get your system to match Vera above DejaVu. This is why it doesn't work. It has nothing to do with the emoji font.

fc-match -s serif
DejaVuSerif.ttf: "DejaVu Serif" "Book"
EmojiOneColor-SVGinOT.ttf: "Emoji One Color" "Regular"

It should be Vera there. It's even stranger that your system is matching DejaVu as Vera:

DejaVuSans-Bold.ttf: "Bitstream Vera Sans" "Bold"

I was hoping for some other reports about this or a way for me to reproduce it. I'm downloading a 16.04 ISO right now to test in VM.

richardjharris commented 8 years ago

I am also running Ubuntu 16.04. Here's my output after installing from the PPA

rjh@merlion:~$ fc-match -s serif | head
VeraSe.ttf: "Bitstream Vera Serif" "Roman"
EmojiOneColor-SVGinOT.ttf: "EmojiOne Color" "Regular"
DejaVuSerif.ttf: "DejaVu Serif" "Book"
rjh@merlion:~$ fc-match -s sans-serif | head
Vera.ttf: "Bitstream Vera Sans" "Roman"
EmojiOneColor-SVGinOT.ttf: "EmojiOne Color" "Regular"
DejaVuSans.ttf: "DejaVu Sans" "Book"
rjh@merlion:~$ fc-match -s "Bitstream Vera Serif"
VeraSe.ttf: "Bitstream Vera Serif" "Roman"
EmojiOneColor-SVGinOT.ttf: "EmojiOne Color" "Regular"
DejaVuSerif.ttf: "DejaVu Serif" "Book"

rjh@merlion:~$ dpkg-query --show ttf-bitstream-vera
ttf-bitstream-vera  1.10-8
rjh@merlion:~$ uname -a
Linux merlion 4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
rjh@merlion:~$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS"
qnub commented 8 years ago

I have this configs in my /etc/fonts/conf.d/:

56-emojione-color.conf
57-dejavu-sans.conf
57-dejavu-sans-mono.conf
57-dejavu-serif.conf
58-dejavu-lgc-sans.conf
58-dejavu-lgc-sans-mono.conf
58-dejavu-lgc-serif.conf

which contains aliases like that:

  <alias binding="same">
    <family>Bitstream Vera Sans</family>
    <accept>
      <family>DejaVu Sans</family>
    </accept>
  </alias>

is not our problem?

13rac1 commented 8 years ago

@richardjharris Yes. That's exactly what it should be. Thank you for the confirmation.

@qnub

is not our problem?

No. I wrote the fontconfig to handle that.

I've just downloaded an ISO and tested the installation process on Ubuntu 16.04 in VirtualBox. Everything went as expected, except for needing to enable the Universe repository. It works correctly and all emoji are visible.

I don't know everything about font config, but there's clearly an issue with your font configuration. I've spent hours testing and reviewing the provided fontconfig. I'm not sure how to help you from here since I cannot reproduce the issue.

The fontconfig docs: https://www.freedesktop.org/software/fontconfig/fontconfig-user.html

13rac1 commented 8 years ago

@qnub I haven't heard any further details regarding so, I must close this issue.

I believe it is happening on your machine, but I cannot reproduce the issue there I cannot fix it. Please try the font installation in a fresh virtual machine on your computer. If you can give me steps to reproduce on a fresh 16.04 VM, I can fix or update the README.md about how to avoid the problem. Thank you!