Commit Graph

15 Commits (main)

Author SHA1 Message Date
Roel Nieskens 7f7c086c7c Add code style tweaks 2020-11-17 15:07:26 +01:00
Roel Nieskens 175188712d Use enTable to create glyf + loca tables 2020-11-17 15:06:17 +01:00
Roel Nieskens 385846bb4f Add glyf table on the fly
Instead of using a separate template, add_glyphs.py will add a
`glyf` and `loca` table when requested via a flag.
2020-11-04 11:36:01 +01:00
Roel Nieskens f6be200765 Refactor glyf and cmap code
Thanks @anthrotype!
2020-11-03 10:32:25 +01:00
Roel Nieskens 6c222b5917 Add cmap format 4 3/1 table for Windows compatibility 2020-11-02 14:26:54 +01:00
Roel Nieskens d453af82c9 Output Windows compatible font with glyf + loca table 2020-11-02 14:26:15 +01:00
rsheeter 28678e5217 Capture changes to fix fontchain_lint on top of master log 2020-03-16 22:52:46 -07:00
Cosimo Lupo 7d501b5819
Merge remote-tracking branch 'origin/master' into python3-port 2019-10-21 15:42:11 +01:00
Roel Nieskens 06ce521969 Simplify rtl sequence code
Co-authored-by: Cosimo Lupo <clupo@google.com>
2019-10-16 20:09:34 +02:00
Roel Nieskens ac638130b3 Fix rtl sequences ending with fitzpatrick modifier
When sequence ends with skintone modifier, it would remain at
the end.

Example:

Input:   [128105, 127995, 8205, 129309, 8205, 128104, 127996]
Output:  [128104, 8205, 129309, 8205, 127995, 128105, 127996]
2019-10-03 09:10:59 +02:00
Mike FABIAN 188ffcf08c Use Python3 explicitly 2019-07-17 10:35:02 +02:00
Mike FABIAN a9ca546689 Make it work both with Python2 and Python3 2019-07-17 10:34:07 +02:00
Doug Felt bb5c080aeb Make sure to initialize lookup table even if LookupType is set. 2017-03-02 10:53:48 -08:00
Doug Felt 3a39580522 Add vhea/vmtx to NotoColorEmoji.
The vertical advance is a little over the horizontal lineheight.

Fixes noto-emoji#94.
2017-02-22 18:13:06 -08:00
Doug Felt 616ed3a600 Rewrite add_glyphs, use alias table.
This is a rewrite of add_glyphs in third_party/color_emoji.  The
primary motivation was to move special aliasing rules out of that
code and use an external aliases file instead.  This new version
is a bit more thorough about aliasing, and hopefully a little
easier to read.

The new add_glyphs takes its parameters using keywords, so
the invocation in the Makefile changed (as well as the path to
the tool).

emoji_aliases.txt was extended to add the flag aliases that were
formerly defined in the old add_glyphs code.

add_aliases was modified so the name of the alias file could be
passed in as a parameter to the main utility function that reads
the alias mapping from the file.

The new code expects all glyphs used by the template GSUB tables
to be named in the GlyphOrder table, but doesn't require the cmap
and hmtx table to be fleshed out.  The new code fleshes these out
when it processes the sequences to add.  As a result the cmap and
hmtx tables in the template were truncated.

The new code also sorts the GlyphOrder table when it extends/rebuilds
it.
2017-02-21 10:15:08 -08:00