Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/13rac1/emojione-color-font.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Erickson <eosrei@gmail.com>2016-03-21 09:10:58 +0300
committerBrad Erickson <eosrei@gmail.com>2016-03-21 09:12:29 +0300
commitf93c509f93df164dcb63d21f9118983ad76555fc (patch)
treeaa645d34625e3b1e5d0eae5c70f7ec0be1210711
parentac15ea44c7e2f454aed844e85949394792161333 (diff)
make: Create linux-specific install package
Significant change to install process recommendations for Linux. The provided fonts.conf makes Bitstream Vera the default font since it doesn't override Emoji One Color. README.md instructions have been updated to use the provided install.sh. Fixes #17
-rw-r--r--Makefile10
-rw-r--r--README.md81
2 files changed, 35 insertions, 56 deletions
diff --git a/Makefile b/Makefile
index 3e8c82e..e15638d 100644
--- a/Makefile
+++ b/Makefile
@@ -11,8 +11,9 @@ SCFBUILD := SCFBuild/bin/scfbuild
VERSION := 1.0-beta2
FONT_PREFIX := build/EmojiOneColor-SVGinOT
REGULAR_FONT := $(FONT_PREFIX).ttf
-OSX_FONT := $(FONT_PREFIX)-OSX.ttf
REGULAR_ZIP := $(FONT_PREFIX)-$(VERSION).zip
+LINUX_ZIP := $(FONT_PREFIX)-Linux-$(VERSION).zip
+OSX_FONT := $(FONT_PREFIX)-OSX.ttf
OSX_ZIP := $(FONT_PREFIX)-OSX-$(VERSION).zip
# There are two SVG source directories to keep the emojione assets separate.
@@ -31,9 +32,14 @@ SVG_COLOR_FILES := $(patsubst build/stage/%.svg, build/svg-color/%.svg, $(SVG_ST
all: $(REGULAR_FONT) $(OSX_FONT)
package: all
- rm -f $(REGULAR_ZIP) $(OSX_ZIP)
+ rm -rf $(REGULAR_ZIP) $(LINUX_ZIP) $(OSX_ZIP) build/linux
7z a -tzip -mx=9 $(REGULAR_ZIP) ./$(REGULAR_FONT)
7z a -tzip -mx=9 $(OSX_ZIP) ./$(OSX_FONT)
+ mkdir build/linux
+ cp -R linux/* build/linux/
+ cp $(REGULAR_FONT) build/linux/
+ cp README.md build/linux/
+ 7z a -tzip -mx=9 $(LINUX_ZIP) ./build/linux/*
$(REGULAR_FONT): $(SVG_TRACE_FILES) $(SVG_COLOR_FILES)
$(SCFBUILD) -c scfbuild.yml -o $(REGULAR_FONT) --font-version="$(VERSION)"
diff --git a/README.md b/README.md
index 43570c0..1aa6b3f 100644
--- a/README.md
+++ b/README.md
@@ -32,7 +32,7 @@ included for backwards/fallback compatibility.
[![Before Emoji One Color in Firefox Linux](images/demo-before.png?raw=true)](images/before-linux-firefox.png?raw=true)
-**After**: Firefox in all three operating systems, plus fallback outline
+**After**: Firefox in all three operating systems, plus fall back outline
characters in the other browsers.
![Firefox color emoji in Linux, OS X, and Firefox](images/demo.png?raw=true)
@@ -56,66 +56,39 @@ SVGinOT Demos (Firefox only):
[7]: https://www.microsoft.com/typography/otspec/svg.htm
## Install on Linux
-The font can be installed for a user or system-wide. This describes how to
-install for a user and does not require root. You *can* simply copy/paste it all
-at one time.
+The font can be installed for a user or system-wide. Get the latest version
+from releases: https://github.com/eosrei/emojione-color-font/releases
+Install for the current user only without root:
```sh
-# 1. Download the latest version from: https://github.com/eosrei/emojione-color-font/releases
-wget https://github.com/eosrei/emojione-color-font/releases/download/v1.0-beta2/EmojiOneColor-SVGinOT-1.0-beta2.zip
+# 1. Download the latest version
+wget https://github.com/eosrei/emojione-color-font/releases/download/v1.0-beta3/EmojiOneColor-SVGinOT-Linux-1.0-beta3.zip
# 2. Uncompress the zip file
-unzip -o EmojiOneColor-SVGinOT-1.0-beta2.zip
-# 3. Create a user font directory, if you don't have one:
-mkdir -p ~/.fonts/
-# 4. Move the font into ~/.fonts/
-mv EmojiOneColor-SVGinOT.ttf ~/.fonts/
-# 5. Create a font config directory
-mkdir -p ~/.config/fontconfig/
-# 6. Override your defaults by creating a ~/.config/fontconfig/fonts.conf
-cat << 'EOF' > ~/.config/fontconfig/fonts.conf
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
-
-<fontconfig>
- <!--
- Make Emoji One Color the initial fallback font for sans-serif, sans, and
- monospace. Override any specific requests for Apple Color Emoji.
- -->
- <match>
- <test name="family"><string>sans-serif</string></test>
- <edit name="family" mode="prepend" binding="strong">
- <string>Emoji One Color</string>
- </edit>
- </match>
- <match>
- <test name="family"><string>serif</string></test>
- <edit name="family" mode="prepend" binding="strong">
- <string>Emoji One Color</string>
- </edit>
- </match>
- <match>
- <test name="family"><string>monospace</string></test>
- <edit name="family" mode="prepend" binding="strong">
- <string>Emoji One Color</string>
- </edit>
- </match>
- <match>
- <test name="family"><string>Apple Color Emoji</string></test>
- <edit name="family" mode="prepend" binding="strong">
- <string>Emoji One Color</string>
- </edit>
- </match>
-</fontconfig>
-EOF
-# 7. Just to be sure, clear your font cache and restart Firefox
-fc-cache -f -v
-# Done!
+unzip -o EmojiOneColor-SVGinOT-1.0-beta3.zip
+# 3. Run the installer
+./install.sh
```
-Try the full demo at: http://eosrei.github.io/emojione-color-font/full-demo.html
+*Warning: This requires `Bitstream Vera` is installed and will change your
+systems default serif, sans-serif and monospace fonts.*
-## Install on OS X
+### Why Bitstream Vera
+The default serif, sans-serif and monospace font for most Linux distributions is
+`DejaVu`. `DejaVu` includes a wide range of symbols which override the
+`Emoji One Color` characters. The previous solution was to make
+`Emoji One Color` the default system font, but that causes a number of issues
+*(Check the issue queue.)* A better solution is a different font that doesn't
+override any emoji characters such as `Bitstream Vera`. `Bitstream Vera` is
+the source of the glyphs used in `DejaVu`, so it's not very different.
+
+### Options
+The `Noto` and `Roboto` font families conflict far less than `DejaVu`. You may
+want to try them. Primary issues are the 0x2639 and 0x263a characters.
+### Arch Linux
+An AUR is available: https://aur.archlinux.org/packages/emojione-color-font/
+
+## Install on OS X
There are three install options for OS X. Both SVGinOT versions are available
from releases: https://github.com/eosrei/emojione-color-font/releases