Skip to content

Commit

Permalink
OpenMoji Black/Colorfont: Scale up by 1.3 to match emoji size of othe…
Browse files Browse the repository at this point in the history
…r vendors #93
  • Loading branch information
b-g committed May 5, 2020
1 parent acc31c1 commit d66343e
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Fix:

Tech:
* Blazing fast new build system by Kris Kowal @kriskowal
* OpenMoji Black/Colorfont scale up by 1.3 to match emoji size of other vendors

--------------------------------------------------------------------------------

Expand Down
Binary file modified font/OpenMoji-Black.ttf
Binary file not shown.
Binary file modified font/OpenMoji-Color.ttf
Binary file not shown.
6 changes: 4 additions & 2 deletions font/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,19 @@

textarea {
background: #f5f5f5;
padding: 0.2em;
font-size: 4em;
line-height: 1.35em;
width: 100%;
height: 5em;
}
</style>
</head>
<body>
<div id="content">
<textarea class="openmoji-color">ABC 👨‍💻 &#x1F4BB; &#x1F468;
<textarea class="openmoji-color">ABC 👨‍💻 &#x1F976; XYZ &#x1F4BB; &#x1F468; &#x1F9DF; Lorem &#xE380; ipsum &#x1F4AF;
</textarea>
<textarea class="openmoji-black">ABC 👨‍💻 &#x1F4BB; &#x1F468;
<textarea class="openmoji-black">ABC 👨‍💻 &#x1F976; XYZ &#x1F4BB; &#x1F468; &#x1F9DF; Lorem &#xE380; ipsum &#x1F4AF;
</textarea>
</div>
</body>
Expand Down
4 changes: 2 additions & 2 deletions font/openmoji.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions font/scfbuild-black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
output_file: OpenMoji-Black.ttf
verbose: True
glyph_svg_dir: tmp-black/
color_svg_dir: tmp-color/
color_svg_dir: tmp-black/
glyph_translate_x: 0
glyph_translate_y: 0
color_transform: translate(0 0)
color_transform: translate(0 0) scale(1.3)
# Space width matching DejaVu Sans and Bitstream Vera Sans.
width_space: 561
table_name:
Expand Down
2 changes: 1 addition & 1 deletion font/scfbuild-color.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ glyph_svg_dir: tmp-black/
color_svg_dir: tmp-color/
glyph_translate_x: 0
glyph_translate_y: 0
color_transform: translate(0 0)
color_transform: translate(0 0) scale(1.3)
# Space width matching DejaVu Sans and Bitstream Vera Sans.
width_space: 561
table_name:
Expand Down
2 changes: 1 addition & 1 deletion helpers/generate-fonts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ docker run --name "$NAME" --rm -t -d --volume "$PWD":/wd --workdir /wd "$IMAGE"

# generate fonts
docker exec -ti "$NAME" bash -c "/scfbuild/bin/scfbuild -c /wd/scfbuild-color.yml"
docker exec -ti "$NAME" bash -c "/scfbuild/bin/scfbuild --glyph-only -c /wd/scfbuild-black.yml"
docker exec -ti "$NAME" bash -c "/scfbuild/bin/scfbuild -c /wd/scfbuild-black.yml"

# stop container
docker stop "$NAME"

0 comments on commit d66343e

Please sign in to comment.