diff options
author | Brad Erickson <eosrei@gmail.com> | 2016-02-24 09:31:44 +0300 |
---|---|---|
committer | Brad Erickson <eosrei@gmail.com> | 2016-02-24 09:31:44 +0300 |
commit | a054c161e21ba52c1068b5c590093358919fc744 (patch) | |
tree | 70eba7041f4379c3a5ab06bd4b5d7238fb58e7a3 | |
parent | 93fd632b045c56067e8bf8fff28c77bfd7d0a439 (diff) |
make: Update to new CLI args and add YAML conf
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | Makefile | 8 | ||||
-rw-r--r-- | README.md | 6 | ||||
-rw-r--r-- | scfbuild.yml | 32 |
4 files changed, 40 insertions, 8 deletions
@@ -1,2 +1,2 @@ build -SMFBuild +SCFBuild @@ -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 @@ -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/ |