From 8d98f7e255484adb97d160f135afd6bec126bafa Mon Sep 17 00:00:00 2001 From: LucJaulmes Date: Fri, 7 May 2021 19:41:43 +0200 Subject: [PATCH] Set codepoints --- .github/workflows/build_fonts.yml | 9 +- config/codepoints.json | 135 ++++++++++++++++++++++++++++++ config/manifest-template.json | 7 ++ 3 files changed, 149 insertions(+), 2 deletions(-) create mode 100644 config/codepoints.json create mode 100644 config/manifest-template.json diff --git a/.github/workflows/build_fonts.yml b/.github/workflows/build_fonts.yml index bc3f9ec..751678d 100644 --- a/.github/workflows/build_fonts.yml +++ b/.github/workflows/build_fonts.yml @@ -12,7 +12,7 @@ jobs: - name: Install dependencies run: | - sudo apt-get install zlib1g-dev fontforge yui-compressor + sudo apt-get install zlib1g-dev fontforge jq yui-compressor for repo in bramstein/sfnt2woff-zopfli google/woff2 wget/sfnt2woff; do dir=${TMPDIR:-/tmp}/${repo#*/} @@ -25,7 +25,12 @@ jobs: sudo gem install fontcustom - name: Build fonts - run: fontcustom compile + run: | + # Pre-populate manifest with fixed codepoints, by populating the glyphs from config/manifest-template.json + # with the contents of config/codepoints.json + jq '.glyphs = ($points[0] | with_entries({key: .key, value: {codepoint: .value}}))' \ + --slurpfile points config/codepoints.json config/manifest-template.json > .fontcustom-manifest.json + fontcustom compile - name: Add minified css run: | diff --git a/config/codepoints.json b/config/codepoints.json new file mode 100644 index 0000000..fae4dd3 --- /dev/null +++ b/config/codepoints.json @@ -0,0 +1,135 @@ +{ +"academia": 59823, +"academia-square": 59709, +"acclaim": 59694, +"acclaim-square": 59706, +"acm": 59708, +"acm-square": 59741, +"acmdl": 59754, +"acmdl-square": 59859, +"ads": 59851, +"ads-square": 59722, +"africarxiv": 59675, +"africarxiv-square": 59659, +"arxiv": 59764, +"arxiv-square": 59814, +"uniE9A2": 59810, +"biorxiv-square": 59787, +"ceur": 59757, +"ceur-square": 59695, +"cienca-vitae": 59666, +"cienca-vitae-square": 59667, +"conversation": 59724, +"conversation-square": 59669, +"coursera": 59743, +"coursera-square": 59775, +"crossref": 59672, +"crossref-square": 59673, +"cv": 59813, +"cv-square": 59658, +"datacite": 59676, +"datacite-square": 59677, +"dataverse": 59895, +"dataverse-square": 59876, +"dblp": 59727, +"dblp-square": 59711, +"depsy": 59770, +"depsy-square": 59723, +"doi": 59774, +"doi-square": 59791, +"dryad": 59772, +"dryad-square": 59788, +"figshare": 59777, +"figshare-square": 59879, +"google-scholar": 59860, +"google-scholar-square": 59897, +"hal": 59692, +"hal-square": 59693, +"ideas-repec": 59885, +"ideas-repec-square": 59896, +"ieee": 59689, +"ieee-square": 59833, +"impactstory": 59855, +"impactstory-square": 59818, +"inspire": 59881, +"inspire-square": 59902, +"isidore": 59702, +"isidore-square": 59732, +"jstor": 59704, +"jstor-square": 59716, +"lattes": 59827, +"lattes-square": 59804, +"mathoverflow": 59894, +"mathoverflow-square": 59771, +"mendeley": 59888, +"mendeley-square": 59891, +"nakala": 59712, +"nakala-square": 59713, +"closed-access": 59714, +"closed-access-square": 59715, +"open-access": 59705, +"open-access-square": 59892, +"openedition": 59718, +"openedition-square": 59719, +"orcid": 59865, +"orcid-square": 59843, +"osf": 59887, +"osf-square": 59697, +"overleaf": 59668, +"overleaf-square": 59789, +"phipapers": 59786, +"philpapers-square": 59759, +"piazza": 59802, +"piazza-square": 59660, +"protocols": 59730, +"protocols-square": 59731, +"publons": 59703, +"publons-square": 59726, +"pubmed": 59807, +"pubmed-square": 59773, +"researcherid": 59674, +"researcherid-square": 59740, +"researchgate": 59742, +"researchgate-square": 59806, +"sci-hub": 59737, +"sci-hub-square": 59653, +"scirate": 59790, +"scirate-square": 59805, +"semantic-scholar": 59758, +"semantic-scholar-square": 59756, +"springer": 59688, +"springer-square": 59803, +"zotero": 59746, +"zotero-square": 59698, +"open-data": 59750, +"open-data-square": 59751, +"open-materials": 59752, +"open-materials-square": 59753, +"preregistered": 59654, +"preregistered-square": 59755, +"elsevier": 59745, +"elsevier-square": 59664, +"inaturalist": 59648, +"inaturalist-square": 59649, +"inpn": 59650, +"inpn-square": 59651, +"moodle": 59655, +"moodle-square": 59656, +"psyarxiv": 59662, +"psyarxiv-square": 59663, +"ssrn": 59670, +"ssrn-square": 59671, +"stackoverflow": 59680, +"stackoverflow-square": 59681, +"pubpeer": 59682, +"pubpeer-square": 59683, +"scopus": 59678, +"scopus-square": 59679, +"zenodo": 59665, +"obp": 59690, +"obp-square": 59691, +"hypothesis": 59738, +"hypothesis-square": 59739, +"ror": 59720, +"ror-square": 59721 +} diff --git a/config/manifest-template.json b/config/manifest-template.json new file mode 100644 index 0000000..e38d971 --- /dev/null +++ b/config/manifest-template.json @@ -0,0 +1,7 @@ +{ + "glyphs": {}, + "checksum": {}, + "fonts": [], + "options": {}, + "templates": [] +}