Commit Graph

674 Commits (main)

Author SHA1 Message Date
Doug Felt 914c9ecb9d Update and extend emoji data.
Updates many existing emoji, and adds new emoji, including zwj
sequences for blended families.  The updated emoji have not been
optimized or resized, run them through the makefile to get ones
similar to the previous existing ones.  Not all updated emoji are new
renderings.
2015-12-07 13:24:39 -08:00
dougfelt e31e9c41d3 Merge pull request #27 from dougfelt/master
Update NotoColorEmoji template so that it passes lint, bump version.
2015-12-01 09:43:46 -08:00
Doug Felt fc0ab7f36d Update NotoColorEmoji template so that it passes lint, bump version.
- fix ascent/descent in hhea and os/2 to match noto UI expectations,
  zero linegap, clear useTypoMetrics bit, set weight to regular (400).
- add missing entries to name table, update revision
- map U+0000 to null glyph (not .notdef)

In addition, this tweaks the Makefile in some small ways:
- quiet zopflipng output somewhat (listen to your cpu fan to know
  that something's happening) :-)
- make flag-symlinks target an order-only dependency (it was triggering
  quantize+compress even when images hadn't changed)
- add comment about how to bypass make bug if multithread hangs
2015-11-30 17:49:52 -08:00
Behdad Esfahbod 0088b3e020 Merge pull request #24 from dougfelt/master
change builder tooling to support emoji sequences
2015-11-18 15:20:27 -08:00
Doug Felt c67a8c3fa6 small fixes 2015-11-13 18:15:09 -08:00
Doug Felt ed31eb2a9f fix emoji source path 2015-11-13 17:57:17 -08:00
Doug Felt 8f39884d6a remove temporary tool build_emoji_set 2015-11-13 17:51:16 -08:00
Doug Felt 34fbef4348 Rewrite makefile
Change the build process to provide more intermediate steps and maintain
intermediate targets.  This slows down make's analysis phase, though.
Make can be run with -j to parallelize the building, but  be careful
with multiple targets on the command line (e.g. 'make clean font') since
clean's deletion of the output tree can sometimes occur after some of
the output directories get built.

This is preparatory to replacing the png images with the original internal
set.  These require a bit more cleanup and processing, which is what these
changes do.  The overall flow is:
- convert all emoji to desired size (136x128).  All are smaller than this,
  most are 128x128 but there are some others.
- run waveflag on the flags
- convert all flags to desired size(136x128).  The flags are 128x128
  originally.
- 'rename' the flags by creating softlinks with the desired names
- run pngquant on all the images and copy them into a single directory,
  this reduces slight antialiasing differences.
- compress all the images, using zopflipng if available, else optipng.
  zopflipng saves about 10%, but is 10x slower.

The remaining steps of building the font are unchanged, for the moment.

The intermediate image files are put into a 'build' subdirectory to organize
them and keep them out of the way.
2015-11-13 17:35:50 -08:00
Doug Felt 170bcdad0e comment out some print lines used for debugging 2015-11-13 17:34:15 -08:00
Doug Felt 927b066b3a update template to version 1.23 2015-11-13 17:32:41 -08:00
Doug Felt d9e320acb5 updates to support tr51 emoji sequences 2015-11-05 11:15:15 -08:00
Doug Felt 7206289643 Merge remote-tracking branch 'upstream/master' 2015-11-04 09:51:48 -08:00
Doug Felt 0f227e7834 wip - update emoji tooling to support tr51 sequences 2015-11-03 18:40:19 -08:00
dougfelt a258889451 Merge pull request #22 from dougfelt/master
Change Makefile to be smarter about dependencies.
2015-10-15 10:52:49 -07:00
Doug Felt deff1a6545 Reintroduce check for missing binary, using a different method.
Another way to do this is to create a target, but when I tried that
it reintroduced the dependency analysis problem-- rules with this
dependency always triggered. Of course I might have missed something
subtle.  Both the target approach and this approach come from
http://stackoverflow.com/questions/5618615/check-if-a-program-exists-from-a-makefile)

This always runs, but unless you're just running clean you'd always want to
perform this check, so I think that's ok.
2015-10-14 17:43:18 -07:00
Doug Felt 4a90607d2d Remove VS_ADDER as a dependency since it is not local 2015-10-14 17:26:44 -07:00
Doug Felt 43a7990b6a Change Makefile to be smarter about dependencies.
This reverts some changes in commit b257b6647d that were causing build
issues.  Those changes quoted the path to pngquant in order to deal
with spaces in the path, but as a side effect that prevented
build-dependency analysis (gnu 3.81 on ubuntu) from recognizing that
the .png files didn't need to be built, and so rebuilt them every
time, which takes several minutes.  Apparently make doesn't like
quotes-- strings passed to the shell are fine, but things make itself
processes (like names of targets) are treated literally.

Since the path to pngquant is (now, anyway) a local subpath of the
current directory that has no spaces, it should be ok to use the
subpath and not bother to quote.

Another change replaces two dependencies on flag-symlinks with a
dependency on PNG128_FLAGS, for the same reason: after flag-symlinks
executed it was not recognized as being up to date and so the rules
with these dependencies always executed.
2015-10-14 17:18:29 -07:00
dougfelt 9419c23480 Merge pull request #21 from dougfelt/master
Add tool and data to generate format 14 cmap.
2015-10-14 17:15:53 -07:00
Doug Felt bbfb0c22ee fix missing rename 2015-10-14 17:10:34 -07:00
Doug Felt 6bd9cc4a9b Remove format 14 cmap tool and ucd data, and update Makefile
The tool and data was moved to nototools.

Makefile now needs to invoke the tool as a script, rather than passing
it to python, since the tool is no longer local.  Running setup.py in
nototools will make the script accessible.  Setup (apparently) copies
the script to /usr/local/bin and it is not automatically updated when
nototools changes, still need to figure out how to address this.
2015-10-14 16:56:44 -07:00
Doug Felt e3d3569fdb rename tool to use "vs" instead of "varsel" 2015-10-14 11:39:39 -07:00
Doug Felt 3d1173340a Change Makefile to also build the variation selector cmap. 2015-10-13 18:27:24 -07:00
Doug Felt 5aad55c383 Add tool and data to generate format 14 cmap.
emoji-data and the code to process it might be useful, but it not
actually used by the tool at present.

The tool currently assumes that all emoji glyphs mapped by the default
cmap share the same presentation.
2015-10-13 18:16:04 -07:00
dougfelt d9c46f652e Merge pull request #18 from dougfelt/master
fix add_glyphs to use absolute path when extending sys.path
2015-09-29 16:41:55 -07:00
Doug Felt 3f36ea9b16 fix for review 2015-09-29 12:46:17 -07:00
Doug Felt baad14e5aa fix add_glyphs to use absolute path when extending sys.path 2015-09-29 11:34:28 -07:00
dougfelt 1aa7485efb Merge pull request #17 from dougfelt/master
update template for OFL license
2015-09-29 11:33:10 -07:00
Doug Felt e607a37b0d update template for OFL license 2015-09-29 11:32:33 -07:00
dougfelt 1a90e7d776 Merge pull request #16 from dougfelt/master
Change license to OFL
2015-09-29 09:10:09 -07:00
Doug Felt 4d3b32cf92 Merge remote-tracking branch 'upstream/master' 2015-09-25 14:29:25 -07:00
Doug Felt 84304adbf5 Update README and add OFL License. Also add Noto splash image. 2015-09-25 14:17:46 -07:00
Doug Felt bcc46ef8b8 Update fonts to OFL and bump version number.
changed
  NotoEmoji-Regular.ttf
    version: 1.03 vs 1.04
    size: 441468 vs 442048 (580 bytes bigger)
    tables: changed name(+578)
2015-09-25 14:08:43 -07:00
Doug Felt 0cf487e721 move font(s) into separate subdir 2015-09-25 14:07:48 -07:00
dougfelt ffd7cfd0c8 Merge pull request #14 from dougfelt/master
cleanup
2015-08-17 16:24:51 -07:00
Doug Felt 3104fd6c5c Merge branch 'master' of https://github.com/dougfelt/noto-emoji 2015-08-17 16:22:35 -07:00
Doug Felt 0a111eb452 update/add link to corporate agreement, per guidelines 2015-08-17 16:21:46 -07:00
dougfelt 4a7426fdd5 Create README.md 2015-08-17 14:53:17 -07:00
Doug Felt cb5390bd74 add contributor agreement text 2015-08-17 14:47:01 -07:00
Doug Felt 0fc81be8d8 Revert "add NL flag svg"
This reverts commit a664ab20a4.
2015-08-17 14:44:05 -07:00
dougfelt 88a8f58885 Merge pull request #13 from dougfelt/master
add NL flag svg
2015-08-13 11:03:20 -07:00
Doug Felt a664ab20a4 add NL flag svg 2015-08-13 11:00:28 -07:00
Behdad Esfahbod cba9c62262 Merge pull request #10 from khaledhosny/master
Further speed up make
2015-07-08 08:46:02 +01:00
Khaled Hosny 1140041c2b Further speed up make
Similar to cee85f422b.
2015-07-07 11:51:37 +02:00
Behdad Esfahbod e2cb07c427 Merge pull request #6 from davispuh/patch-1
Quote $PNGQUANTDIR and $PNGQUANT
2015-06-24 15:24:29 -07:00
Dāvis b257b6647d Quote $PNGQUANTDIR and $PNGQUANT
Quoting is necessary so that can build from path which contains spaces
2015-06-24 12:31:51 +03:00
Behdad Esfahbod 8839dc42e1 Merge pull request #5 from khaledhosny/speedup-make
Speed up make by calling flag_glyph_name.py once
2015-06-20 17:59:10 -07:00
Khaled Hosny cee85f422b Speed up make by calling flag_glyph_name.py once
This script takes ~1 second for startup, so calling it repeatedly for
each flag slows the Makefile considerably, and unnecessarily since it
can be called for all the flags at once.

Now make clean takes about 1.2s, instead of 3m45s.
2015-06-20 01:50:25 +02:00
Behdad Esfahbod 76da1e514d Merge pull request #4 from khaledhosny/master
Fix build
2015-06-19 13:16:14 -07:00
Khaled Hosny 0955c3cddc Python is not always installed as /usr/bin/python 2015-06-19 22:01:52 +02:00
Khaled Hosny e58a66978a Fix build
Fix the paths after repo split.
2015-06-19 22:01:26 +02:00