Comments (23)
I have made a small change that allows the user (Ubuntu 18.04, gnome) to change the fonts and override the Vera default provided by this package and still benefit from the color emojis it provides (I use Source Sans Pro). The change is simply to load the 56-twemoji-color.conf font config file before the 50-user.conf file that load user preferences made by gnome-tweak-tool for example.
Commands I used as superuser:
cd /etc/fonts/conf.d
mv 56-twemoji-color.conf 46-twemoji-color.conf
Hope that helps and thanks for the twemoji-color-font package!
from twemoji-color-font.
Older... 😛 Current LTS 😆 (For the rest of the month!)
from twemoji-color-font.
For me the solution became simply removing/disabling the 56-ttf-twemoji-color.conf and then installing a patched DejaVu with no emoji-glyphs. (Twitter Color Emoji was already set in 45-generic.conf so did not need extra setup to add it)
I use Arch Linux and there was already an AUR package with the font.
The font is made with a simple fontforge python script...
cleaner.py:
from json import load
from sys import argv
ttf = fontforge.open(argv[1])
for emoji in load(open('emoji.json')):
try:
ttf.removeGlyph(int(emoji['unified'], 16))
except ValueError:
pass
ttf.generate(argv[1])
...that is fed a list of possible emoji-glyphs and then removes them from DejaVu.
for font in *.ttf; do fontforge -script cleaner.py $font; done
from twemoji-color-font.
from twemoji-color-font.
Yes, I changed some fonts, but the default Gnome Desktop use what looks like Cantarell for that part of the interface, i don't even know how to change it
It doesn't actually bother me if there are some problems like this about fontconfig, but being better warned of this issue is important (without the "uninstall" script, i would have been unable to restore a decent-looking system).
from twemoji-color-font.
The "<1%" I refer to in that statement are the people who can recognize the difference between the glyphs DejaVu and Bitstream Vera. Anything else, such as this, is a font configuration problem.
Can you give me the output of this on your system?
$ fc-match sans -s | head -n4
Vera.ttf: "Bitstream Vera Sans" "Roman"
TwitterColorEmoji-SVGinOT.ttf: "Twitter Color Emoji" "Regular"
DejaVuSans.ttf: "DejaVu Sans" "Book"
DejaVuSans-Bold.ttf: "DejaVu Sans" "Bold"
from twemoji-color-font.
@Maestroschan I think the system fonts (e.g. Cantarell) are set with some sort of config files? Regardless, there is a GUI program called gnome-tweak-tool that can display/edit these settings.
Guide: https://www.maketecheasier.com/change-the-fonts-in-gnome3/
from twemoji-color-font.
~$ fc-match sans -s | head -n4
DejaVuSans.ttf: "DejaVu Sans" "Book"
DejaVuSans-Bold.ttf: "DejaVu Sans" "Bold"
DejaVuSans-Oblique.ttf: "DejaVu Sans" "Oblique"
DejaVuSans-BoldOblique.ttf: "DejaVu Sans" "Bold Oblique"
(i used the "uninstall" script and just installed the emoji font with the gnome utility from the .ttf file)
@DeeDeeG it seems like /usr/share/gnome-shell/theme/gnome-shell.css
doesn't exist anymore. I do know Gnome Tweak Tool, but it is not the problem : Cantarell is "unset" (is this an actual word?) and there is Vera everywhere, which is kind of hard to revert without the provided "uninstall" script.
from twemoji-color-font.
Yes, unset is a word. Opposite of set.
The only thing the install script does is copy the font file and the custom font config: https://github.com/eosrei/twemoji-color-font/blob/master/linux/fontconfig/56-twemoji-color.conf.
from twemoji-color-font.
That's weird, the french equivalent of "set" doesn't have an actual opposite.
I did a little screencast https://www.youtube.com/watch?v=W_jZKfsRX6s (there is a bug with terminix i hope you can read it) so you can see how the problem looks like, and how Tweak Tool is helpless and can't even understand what's going on.
from twemoji-color-font.
GNOME Shell hardcodes the Cantarell font in its default shell theme. This can be changed but most users and distros probably don't.
Ubuntu 17.10 uses the Ubuntu font instead of Cantarell unless a user opts in to the "vanilla GNOME" session or uses some other desktop.
@Maestroschan what Shell theme are you using?
from twemoji-color-font.
It is Debian 9 with the default shell theme
from twemoji-color-font.
Same here...
from twemoji-color-font.
This font config definitely breaks fonts in Firefox badly, starting with fonts on tabs and finishing with any fonts on websites.
Indeed, I didn't notice any difference after switching from default DejaVu to Bitstream Vera.
Here is how both Bitstream Vera or DejaVu look like:
And as soon as I install fonts-twemoji-svginot following happens:
You'll spot the difference even if know nothing about fonts.
This package also overrides explicitly configured fonts on websites, for instance, on duckduckgo.com I've configured theme to use Open Sans
as primary font and here is what I've got:
Far from Open Sand
, right? Other websites look terrible too.
Even more interesting is the fact that demo (https://eosrei.github.io/emojione-color-font/full-demo.html) still shows some of the emoji as black and white even with fonts-twemoji-svginot
.
I've played with configs for a few hours and figured out a solution in #37. If other than default fonts are desired, ~/.config/fontconfig/fonts.conf
can be created with contents like following:
<?xml version="1.0" encoding="UTF-8"?>
<fontconfig>
<alias binding="strong">
<family>serif</family>
<prefer><family>Twitter Color Emoji</family></prefer>
<default><family>DejaVu Serif</family></default>
</alias>
<alias binding="strong">
<family>sans-serif</family>
<prefer><family>Twitter Color Emoji</family></prefer>
<default><family>DejaVu Sans</family></default>
</alias>
<alias binding="strong">
<family>monospace</family>
<prefer><family>Twitter Color Emoji</family></prefer>
<default><family>DejaVu Sans Mono</family></default>
</alias>
</fontconfig>
Where DejaVu *
fonts can be replaced with whatever you like more.
P.S. I'm on Ubuntu 18.04
from twemoji-color-font.
Hmm... yes lots of differences in the newer versions. I'm still seeing nearly everything work correctly in 16.04. I'll get a VM going of 18.04.
from twemoji-color-font.
I've just pushed more changes to mentioned PR, even fixed tests. Would be nice if you can test it on your older 16.04 if it doesn't break anything to you.
from twemoji-color-font.
- Font version: 1.4
- Operating system: Linux Mint 18.3
- Firefox version: 59.0.2
I have just installed font from ppa.
from twemoji-color-font.
@Unnumbered, try #37 in case you don't use some applications like under Wine where it causes issues.
Also @eosrei, will you have time to split package into 2 like we've discussed there?
from twemoji-color-font.
FWIW, I also reacted about this statement because after installing this font my Firefox looked very different... Also on Debian (buster) with Firefox.
Before (Using Arial, from the ttf-mscorefonts-installer
package - yes, I know Arial is not the same as DejaVu...):
After installing the package:
Here is the fc-match
output without the package installed:
$ fc-match sans -s | head -n4
DejaVuSans.ttf: "DejaVu Sans" "Book"
DejaVuSans-Bold.ttf: "DejaVu Sans" "Bold"
DejaVuSans-Oblique.ttf: "DejaVu Sans" "Oblique"
DejaVuSans-BoldOblique.ttf: "DejaVu Sans" "Bold Oblique"
But, I think the reason here is that for some reason, Vera takes precedence even though Arial is installed. FWIW, the CSS rule in question looks like this here:
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
I tried changing this with the CSS inspector to some random value like "Comic Sans MS" but this made it display using "Bitstream Vera Serif" (???).
Uninstalled the package and now Comic Sans is displaying alright... There's clearly something fishy going on here.
from twemoji-color-font.
In case a GNOME Tweaks screenshot is needed to know which fonts are used, here it is :
from twemoji-color-font.
I had to uninstall this and reboot, because one website had become essentially unusable (sure, it was bad design on their part) and there didn't seem to be any way for me to make it use another font!?
Even when I overwrote the CSS with Firefox's dev tools, it would still use BitStream Vera Sans, which is apparently broken.
EDIT: To explain: The font was significantly wider than DejaVu Sans, which broke the layout of a roll20 character sheet.
from twemoji-color-font.
@kindfulkirby It's not actually Bitstream Vera at fault. It is the same. Try it in a document text editor. This is a failure of font rendering.
FWIW I leave this issue open so people with complaints can find it. I have no easy solution.
from twemoji-color-font.
May or may not be related, but as far as I can't tell I don't think I've noticed this problem anymore ever since I stopped using the .debs and started installing locally with install.sh instead.
from twemoji-color-font.
Related Issues (20)
- Can you make iOS/macOS emojis for Windows? HOT 1
- After uninstalling, the emoji picker is missing some emojis. HOT 4
- keycap:0 or keycap 1...9 not works fine with windows 10 HOT 1
- windows: install does not work at all for me HOT 6
- Font showing regular twemoji in emoji picker, but only outlines in browser. HOT 1
- B&W fallback characters for differently colored squares, circles, etc. should be distinguishable from each other. HOT 1
- [Feature Request] Please add a silent install switch?
- Emoji font for print standards
- Chocolatey package that replaces the system fonts on update via a script HOT 1
- Query: can the Windows installer for Twemoji Color Font be adapted to install Noto Color Emoji font? HOT 1
- Broken rendering on Debian HOT 2
- When will the new update come out? HOT 6
- Can I use the install.cmd file with other font backs ? HOT 1
- Chrome emoji functionality not restored after uninstalling. HOT 5
- they're b&w on google chrome android HOT 1
- pyftmerge not found HOT 2
- Emojis are in black and white and only use outlines. HOT 2
- Update to twemoji v15 HOT 1
- Python PIL OSError: invalid pixel size HOT 4
- Make a font file without black and white emojis. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twemoji-color-font.