Commit Graph

629 Commits (e8f3ab2060638aa71137c543b8dc1bc79d1e9600)

Author SHA1 Message Date
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
Rod S 8130ead956 Update svg paths 2021-12-22 14:45:26 -08:00
Rod S 9572d1c70e Start of a readme 2021-12-22 14:45:06 -08:00
Rod S f868356f54 Init all and noflags nanoemoji configs from noto-glyf_colr_1.toml and noto_noflags-glyf_colr_1.toml in https://github.com/googlefonts/color-fonts at 24f193c. 2021-12-22 14:37:12 -08:00
Cosimo Lupo 17d694950f
Merge pull request #373 from anthrotype/svg_flags3
Rebuild all waved SVG flags with latest picosvg and rsheeter/warp tool
2021-12-15 12:28:55 +00:00
Cosimo Lupo 84a33221ec rebuild all waved flags after picosvg PR258 and 259
https://github.com/googlefonts/picosvg/pull/258
https://github.com/googlefonts/picosvg/pull/259
2021-12-14 16:44:40 +00:00
Cosimo Lupo 013b3fe5ca Rebuild all waved SVG flags with latest picosvg and rsheeter/warp tool
Fixes https://github.com/googlefonts/color-fonts/issues/86 among others
2021-12-07 15:56:46 +00:00
Cosimo Lupo 44850e02c0 Merge remote-tracking branch 'origin/main' into svg_flags2 2021-11-16 16:05:52 +00:00
rsheeter 9a5261d871
Merge pull request #369 from googlefonts/u14
U14
2021-11-01 11:50:28 -07:00
Rod S be75986a58 Fix 1fae5 2021-10-29 15:25:50 -07:00
Rod S 317f03b41a Generate 32, 72, 512 sizes for U14 2021-10-28 20:55:25 -07:00
Rod S eace274972 Binary v2.034 2021-10-28 20:55:25 -07:00
Rod S 79c9d18d75 v2.034 2021-10-28 20:55:25 -07:00
Rod S b43c76ae0b Fix mk3 for 1fae5 2021-10-28 20:55:25 -07:00
Rod S 2e77677923 Binary v2.033 2021-10-28 20:55:25 -07:00
Rod S 395932ec12 Update to 2.033 2021-10-28 20:55:24 -07:00
Rod S b9ed695ca7 1fae5 fix mk2 2021-10-28 20:55:24 -07:00
Rod S c8ead26229 Binary v2.032 2021-10-28 20:55:24 -07:00