Commit Graph

540 Commits (a8f13094d09a418dd828230e2865813507ccb9ce)

Author SHA1 Message Date
Doug Felt 343e9ffbf4 Add 'unknown flag' glyph.
This uses PUA character U+FE82B for the unknown flag during processing.
Currently I don't yet remove this from the cmap when we're done.
2016-03-13 14:56:02 -07:00
Doug Felt 3a57df2ac6 Improve flag support.
This adds some additional flags to the default set.  In addition,
it contains code that creates ligatures for some flag sequences to
others, for a few cases where we want different regions to share
the same flag.  Finally, it adds default ligatures so that pairs of
regional indicator characters for which there's no predefined glyph
get a 'missing flag' glyph.  This avoids cases where sequences of
regional indicator sequences accidentally match at odd locations
because of a previous mismatch.

There is no actual 'missing flag' glyph yet.  The code uses an
existing emoji as a placeholder.
2016-03-11 19:02:15 -08:00
Doug Felt 0b5cf8651b Add IC svg and png resources from upstream (behdad/region_flags). 2016-03-11 15:16:54 -08:00
Doug Felt b1fad49732 Merge remote-tracking branch 'upstream/master' 2016-02-01 13:17:08 -08:00
Doug Felt a9b8e7f8e0 Add tool that generates an html file comparing emoji images.
This uses nototools to get unicode names.  It relies on new
api in nototools.unicode_data to get data/names of proposed emoji
that are not currently approved and so not in the standard data
files.
2016-01-29 14:38:07 -08:00
dougfelt 91ef95d0e7 Merge pull request #42 from dougfelt/master
Minor tweaks to quiet makefile and fix bug in add_glyphs.
2016-01-28 14:03:49 -08:00
Doug Felt 6caa07aaae Minor tweaks to quiet makefile and fix bug in add_glyphs. 2016-01-28 14:03:21 -08:00
dougfelt 7216ebf91a Merge pull request #41 from dougfelt/master
Revert NotoColorEmoji ascent/descent to previous values.
2016-01-28 14:02:41 -08:00
Doug Felt 9f6837da4b Revert NotoColorEmoji ascent/descent to previous values.
Note, this leaves the linegap at zero.  Bumps the version to 1.25.
2016-01-28 13:58:21 -08:00
dougfelt 941712890c Merge pull request #33 from dougfelt/master
Update NotoEmoji to v1.05 uh.
2015-12-15 14:05:20 -08:00
dougfelt 47fc5fa794 Merge pull request #32 from dougfelt/master
Fix googlei18n/noto-fonts#575
2015-12-15 14:03:23 -08:00
Doug Felt 2f1ffdd6fb Update NotoEmoji to v1.05 uh.
Fixes remaining lint issues.

Additional fixes make this differ from the source drop provide by
Monotype, however this retains the same version number as they provided:
- renames the file and adjusts name table to conform to our existing naming
- moves the PUA characters that were in plane 0 to the PUA in plane 15 in
  order to match NotoColorEmoji

changed
  NotoEmoji-Regular.ttf
    version: 1.04 vs 1.05
    size: 442048 vs 418804 (23244 bytes smaller)
    tables: changed glyf(-32692), post(+8057), cmap(+1420), loca(-56), hmtx(-28); added GPOS(36)
    glyphs: 902 vs 888 (14 fewer glyphs)
    chars: 901 vs 887 (14 fewer chars)
    cmap removed: 2000..200B, E023, E030..E039, FFFC..FFFD
    cmap added: FE82C, FE82E..FE837
2015-12-15 13:49:44 -08:00
Doug Felt cd14dbcbc0 Fix googlei18n/noto-fonts#575 2015-12-10 13:25:15 -08:00
Sascha Brawer eeea374ac1 Merge pull request #31 from dougfelt/master
Update README.md with information on building NotoColorEmoji
2015-12-09 09:59:52 +01:00
Doug Felt 0a10ce4ddc Update README.md with information on building NotoColorEmoji. 2015-12-08 14:53:22 -08:00
dougfelt 979f9f6a1c Merge pull request #28 from dougfelt/master
Update and extend emoji data.
2015-12-07 13:30:14 -08:00
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