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-02-24 09:31:44 +0300
committerBrad Erickson <eosrei@gmail.com>2016-02-24 09:31:44 +0300
commita054c161e21ba52c1068b5c590093358919fc744 (patch)
tree70eba7041f4379c3a5ab06bd4b5d7238fb58e7a3
parent93fd632b045c56067e8bf8fff28c77bfd7d0a439 (diff)
make: Update to new CLI args and add YAML conf
-rw-r--r--.gitignore2
-rw-r--r--Makefile8
-rw-r--r--README.md6
-rw-r--r--scfbuild.yml32
4 files changed, 40 insertions, 8 deletions
diff --git a/.gitignore b/.gitignore
index f4a9659..cfc0769 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
build
-SMFBuild
+SCFBuild
diff --git a/Makefile b/Makefile
index 4f91d81..ee5ef6b 100644
--- a/Makefile
+++ b/Makefile
@@ -3,8 +3,8 @@
.PHONY: clean
-OUTPUT_FONT := build/EmojiOne-SVGinOT.ttf
-SMFBUILD := SMFBuild/bin/smfbuild
+OUTPUT_FONT := build/EmojiOneColor-SVGinOT.ttf
+SCFBUILD := SCFBuild/bin/scfbuild
TMP := /tmp
# Use Linux Shared Memory to avoid wasted disk writes.
@@ -23,7 +23,7 @@ SVG_COLOR_FILES := $(patsubst build/svg-trace/%.svg, build/staging/%.svg, $(SVG_
all: $(OUTPUT_FONT)
$(OUTPUT_FONT): $(SVG_TRACE_FILES) $(SVG_COLOR_FILES)
- $(SMFBUILD) build/svg-trace $(OUTPUT_FONT) --color-svg-dir=build/staging --transform="translate(0 -800) scale(1.0)"
+ $(SCFBUILD) -c scfbuild.yml -o $(OUTPUT_FONT)
# Create black SVG traces of the color SVGs to use as glyphs.
# 1. Make the EmojiOne SVG into a PNG with Inkscape
@@ -37,7 +37,7 @@ build/svg-trace/%.svg: build/staging/%.svg | build/svg-trace
rm $(TMP)/$(*F).png
mkbitmap -g -s 1 -f 10 -o $(TMP)/$(*F).pgm $(TMP)/$(*F).bmp
rm $(TMP)/$(*F).bmp
- potrace -s --height 1000pt --width 1000pt -o $@ $(TMP)/$(*F).pgm
+ potrace -s --height 2048pt --width 2048pt -o $@ $(TMP)/$(*F).pgm
rm $(TMP)/$(*F).pgm
# Copy the files from multiple directories into one source directory
diff --git a/README.md b/README.md
index 56b86d3..cf875cb 100644
--- a/README.md
+++ b/README.md
@@ -39,14 +39,14 @@ The font can be installed and set as the default Emoji font system wide.
mkdir -p `~/.config/fontconfig/`
```
-3. Replace your default, generally *DejaVu Sans*, by creating a `fonts.conf`:
+3. Override your default by creating a `fonts.conf`:
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
- <!-- Make -->
+ <!-- Make Emoji One Color the initial fallback font-->
<match>
<test name="family"><string>sans-serif</string></test>
<edit name="family" mode="prepend" binding="strong">
@@ -93,7 +93,7 @@ Required applications:
* potrace
* FontTools
* FontForge
-* SMFBuild (created for this project!)
+* SCFBuild (created for this project!)
* make
Run: `make`
diff --git a/scfbuild.yml b/scfbuild.yml
new file mode 100644
index 0000000..058c735
--- /dev/null
+++ b/scfbuild.yml
@@ -0,0 +1,32 @@
+# SCFBuild configuration file for Emoji One Color SVGinOT
+output_file: build/EmojiOneColor-SVGinOT.ttf
+glyph_svg_dir: build/svg-trace
+color_svg_dir: build/staging
+# The SVGs are 64x64. They are scaled to 1000x1000 by the renderer, but need
+# adjustment to line up correctly. 8/10*2048 = 1638 = Default font ascent
+color_svg_transform: translate(0 -1638) scale(2.048)
+verbose: False
+table_name:
+ copyright: >
+ Copyright 2016 Brad Erickson CC-BY.
+ Copyright 2015 Ranks.com Inc. CC-BY.
+ Copyright 2015 Twitter, Inc. CC-BY.
+ family: Emoji One Color
+ # Subfamily is also called Style or Weight. Often set to: Regular
+ subfamily: SVGinOT
+ unique_id: eosrei.net - Emoji One Color SVGinOT
+ full_name: Emoji One Color SVGinOT
+ version: 1.0-beta
+ postscript_name: Emoji One Color SVGinOT
+ #trademark:
+ manufacturer: Brad Erickson
+ designer: Ranks.com Inc.
+ description: >
+ A SVGinOT color emoji font using the Emoji One set:
+ https://github.com/eosrei/emojione-color-font/ Please review the
+ attribution requirements for commercial use of Emoji One icons:
+ http://emojione.com/licensing/
+ url_vendor: https://github.com/eosrei/emojione-color-font/
+ url_designer: http://emojione.com/
+ license: Creative Commons Attribution 4.0 International
+ url_license: http://creativecommons.org/licenses/by/4.0/