Commit Graph

596 Commits (3ee516e14f145661370e7a1b82aaf5e128935dc8)

Author SHA1 Message Date
Jennifer Daniel 3ee516e14f
Update README.md 2022-08-11 07:35:56 -04:00
Cosimo Lupo 86c19b00b7
Merge pull request #399 from googlefonts/generate-colrv1-configs
add script to generate colrv1 configs by globbing the relevant *.svg files
2022-07-21 17:41:21 +01:00
Cosimo Lupo 93be998cac colrv1/README.md: recommend to regenerate configs as initial step before build 2022-07-21 15:42:55 +02:00
Cosimo Lupo b0a855e2db regenerate colrv1/*.toml files using new colrv1_generate_configs.py script 2022-07-21 15:30:15 +02:00
Cosimo Lupo e5666815c1 [colrv1] add script to regenerate nanoemoji configs by globbing source *.svg sources
Fixes https://github.com/googlefonts/noto-emoji/issues/397
2022-07-21 15:30:15 +02:00
Cosimo Lupo 81a3995aa3
Merge pull request #389 from googlefonts/colrv1
COLRv1 edition
2022-07-21 09:57:05 +01:00
rsheeter c0040cb09c
Merge pull request #387 from SaveTheRbtz/mistypes1
Fix trivial mistypes w/ codespell
2022-05-05 19:32:36 -07:00
Rod S bc8671f7c9 Update to latest compiler 2022-05-04 21:32:55 -07:00
Rod S dc8968de5f Remove now unnecessary files per code review 2022-05-04 21:02:17 -07:00
rsheeter 2203a22176
Merge pull request #388 from SaveTheRbtz/removeOldFont
Remove outdated NotoEmoji-Regular.ttf
2022-04-03 19:11:05 -07:00
Alexey Ivanov 1442f6acc8 Remove outdated NotoEmoji-Regular.ttf
B/W font was not updated for quite a while and stuck at 1.05 (fontversion 68813). Should it be deprecated at this point and removed from the repo?
2022-04-03 15:07:51 -07:00
Alexey Ivanov e0aa941257 fix trivial mistypes w/ codespell 2022-04-02 22:05:51 -07:00
Cosimo Lupo dc4a1a9ac7 Rebuild Noto-COLRv1 fonts
The only change is the .notdef glyph now has an outline thanks to https://github.com/googlefonts/nanoemoji/pull/379
2022-02-22 15:13:20 +00:00
Cosimo Lupo 8598b69ad3 requirements.txt: bump nanoemoji==0.12.2 2022-02-22 11:40:11 +00:00
Rod S 5bf4fd2a7e Config for a very large emoji font 2022-02-19 18:49:14 -08:00
Rod S 558c02485a Font files 2022-02-19 18:48:54 -08:00
rsheeter e667644ec5
Merge pull request #378 from googlefonts/colrv1-handle-unknown-flags
Colrv1 handle unknown flags and don't include region indicators in noflags build
2022-02-03 19:16:10 -08:00
Cosimo Lupo 083b7fcad7 colrv1_postproc.py: handle missing regional indicators in noflags font
don't bother to do textwrap.dedent, as whitespace doesn't matter in FEA code
2022-02-03 19:13:48 +00:00
Cosimo Lupo ec10159d1f colrv1/noflags.toml: exclude regional indicator symbols from noflags font 2022-02-03 19:05:13 +00:00
Cosimo Lupo 631766222f empty subdivision flag (1F3F4+E007F) should be mapped to uknown flag, not the black flag
The substitution BLACK_FLAG + CANCEL_TAG => UNKNOWN_FLAG is alrady handled by the _add_fallback_subs_for_unknown_flags method, added in the previous commit.
There's no BLACK_FLAG + CANCEL_TAG => BLACK_FLAG substituion in the current NotoColorEmoji.ttf CBDT font.
In fact, it makes much more sense that all unsupported subdivision flag sequences, i.e. BLACK_FLAG + (zero or more non-cancel tags) + CANCEL_TAG, are all displayed with the unknown flag. No reason to special case BLACK_FLAG + CANCEL_TAG.
I'm not sure where the conclusion about the BLACK_FLAG + CANCEL_TAG => BLACK_FLAG came from (got to ask Rod).
2022-02-03 12:28:16 +00:00
Cosimo Lupo f8ec04e4a3 colrv1_postproc: add GSUB lookups replacing unsupported flags with the 'unknown flag'
Any invalid/unsupported emoji flag sequence (whether using regional indicators or subdivision tags) gets replaced by the 'unknown flag' (PUA 0xFE28B), a flag with a blue question mark in the middle.

The logic is mutated from the GSUB table of NotoColorEmoji.tmpl.ttx. We build these extra lookups using feaLib on an temporary empty font (that matches the glyph order of our destination CORLv1 font), then update our font's GSUB with them.
The PUA for the unknown flag is then removed from the cmap, as it's no longer needed. It's also deleted from the CBDT NotoColorEmoji (see emoji_builder.py).
2022-02-03 12:15:46 +00:00
Rod S 2a9ee805d6 Rebuilt with nanoemoji==0.11.1, picosvg==0.20.1 2022-02-02 17:46:51 -08:00
Cosimo Lupo 7de262169b Rebuilt Noto-COLRv1 fonts with nanoemoji 0.11.1 2022-02-02 10:59:57 +00:00
Cosimo Lupo 1136b6a210 Update nanoemoji >=0.11.1 in requirements.txt 2022-02-02 10:58:36 +00:00
Rod S 4fac75b218 Exploratory font with many color tables 2022-01-31 17:33:15 -08:00
Rod S 16f5f57a79 Rebuilt w/soft light 2022-01-28 21:32:55 -08:00
Cosimo Lupo b83718269e colrv1_postproc: add vhea and vmtx to colrv1 font
copy values from CBDT font, adapt to the different UPEM (CBDT has 2048, COLRv1 has 1024, nanoemoji's default)
Maybe we shold just make the UPEM the same for both?
2022-01-26 16:47:00 +00:00
Cosimo Lupo 5d4f4d6b38 run black on colrv1_postproc.py script to fix indentation 2022-01-26 16:09:18 +00:00
rsheeter 831faf480d
Merge pull request #377 from googlefonts/colrv1-waved
Colrv1 waved => colrv1
2022-01-25 09:48:11 -08:00
Cosimo Lupo 5a04ef08ee call add_soft_light_to_flags from colrv1_postproc.py script 2022-01-24 18:07:11 +00:00
Cosimo Lupo 2188c2d237 also add soft-light to flags from emoji_aliases.txt 2022-01-24 18:06:46 +00:00
Cosimo Lupo 33f930ba7f add symlinks for flags from emoji_aliases.txt
Run command:
python add_aliases.py -e svg -a emoji_aliases.txt -s third_party/region-flags/waved-svg
2022-01-24 15:43:26 +00:00
Cosimo Lupo 43f5cc0153 delete svg files for flags' border and soft-light
they are no longer needed because the border is already in the original waved flags, and the soft ligth is added by a script
2022-01-24 15:40:06 +00:00
Cosimo Lupo e4df897e53 rebuild waved flags with border using latest rsheeter/warp
https://github.com/rsheeter/warp/pull/24
2022-01-19 12:50:52 +00:00
Cosimo Lupo 13892a930c only post-process soft-light for flags, border will be added in the input SVGs and thus in COLRv1 font
the border can be added directly to the input waved flags SVGs like a regular path, we don't need to use PaintComposite multiply operator, regular alpha blending produces the same effect since the border is a semi transparent shade of gray.

I renamed the script colrv1_add_soft_light_to_flags.py, and modified so that it doesn't require any additional glyphs to be present; an unbounded PaintLinearGradient is built on the fly and clipped using the flag as a mask (using SRC_IN compositing mode).
2022-01-19 10:52:28 +00:00
Cosimo Lupo 24ccbd2377 rebuild all waved flags with new aspect ratio and margins
https://github.com/rsheeter/warp/pull/21
2022-01-14 17:18:20 +00:00
Cosimo Lupo bc3a2584ad Add script to update NotoColorEmoji-COLRv1 with flags' border and soft-light effect 2022-01-14 16:53:37 +00:00
Cosimo Lupo 2e0c03e28c Add flag border and soft-light SVGs to colrv1/*.toml 2022-01-14 16:22:16 +00:00
Cosimo Lupo 1e662ddf9c colrv1/all.toml: add line breaks so diffs are more legible 2022-01-14 16:21:07 +00:00
Cosimo Lupo 5101367204 add border and soft-light SVGs in colrv1/flags-border 2022-01-14 16:14:42 +00:00
Cosimo Lupo 1f8201c939 Makefile: add print-% special command to print Makefile variables
I need to extract the content of SELECTED_FLAGS to know which of the flags actually get built into the emoji font
2022-01-14 16:07:03 +00:00
Cosimo Lupo c839aba00d colrv1/noflags.toml: use subdivision flags from third_party/region-flags/waved-svg dir 2022-01-14 16:05:04 +00:00
Cosimo Lupo dc1398866c Merge remote-tracking branch 'origin/svg_flags2' into colrv1-waved 2022-01-14 15:55:37 +00:00
Rod S a17b1b474b Tweaks to make fontchain_lint happier 2022-01-06 21:54:41 -08:00
Rod S a8f13094d0 Add non-regional flags 2022-01-06 20:28:57 -08:00
Rod S 49c85d1ac9 Add line breaks so diffs are legible 2022-01-05 21:52:46 -08:00
Rod S 9d0db6366a One more map to space 2022-01-05 21:14:23 -08:00
Rod S 48aa43748d Exploratory mapping of things to space to match observed shaping in CBDT 2021-12-29 19:08:03 -08:00
Rod S d0bcf99532 Fixmore fontchain_lint issues 2021-12-23 17:44:08 -08:00
Rod S f46188ee49 Script to derive somewhat more correct COLRv1 font from a good CBDT one 2021-12-22 15:43:23 -08:00