Skip to content

Commit 8d98f7e

Browse files
committed
Set codepoints
1 parent d6b206d commit 8d98f7e

3 files changed

Lines changed: 149 additions & 2 deletions

File tree

.github/workflows/build_fonts.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
- name: Install dependencies
1414
run: |
15-
sudo apt-get install zlib1g-dev fontforge yui-compressor
15+
sudo apt-get install zlib1g-dev fontforge jq yui-compressor
1616
1717
for repo in bramstein/sfnt2woff-zopfli google/woff2 wget/sfnt2woff; do
1818
dir=${TMPDIR:-/tmp}/${repo#*/}
@@ -25,7 +25,12 @@ jobs:
2525
sudo gem install fontcustom
2626
2727
- name: Build fonts
28-
run: fontcustom compile
28+
run: |
29+
# Pre-populate manifest with fixed codepoints, by populating the glyphs from config/manifest-template.json
30+
# with the contents of config/codepoints.json
31+
jq '.glyphs = ($points[0] | with_entries({key: .key, value: {codepoint: .value}}))' \
32+
--slurpfile points config/codepoints.json config/manifest-template.json > .fontcustom-manifest.json
33+
fontcustom compile
2934
3035
- name: Add minified css
3136
run: |

config/codepoints.json

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
{
2+
"academia": 59823,
3+
"academia-square": 59709,
4+
"acclaim": 59694,
5+
"acclaim-square": 59706,
6+
"acm": 59708,
7+
"acm-square": 59741,
8+
"acmdl": 59754,
9+
"acmdl-square": 59859,
10+
"ads": 59851,
11+
"ads-square": 59722,
12+
"africarxiv": 59675,
13+
"africarxiv-square": 59659,
14+
"arxiv": 59764,
15+
"arxiv-square": 59814,
16+
"uniE9A2": 59810,
17+
"biorxiv-square": 59787,
18+
"ceur": 59757,
19+
"ceur-square": 59695,
20+
"cienca-vitae": 59666,
21+
"cienca-vitae-square": 59667,
22+
"conversation": 59724,
23+
"conversation-square": 59669,
24+
"coursera": 59743,
25+
"coursera-square": 59775,
26+
"crossref": 59672,
27+
"crossref-square": 59673,
28+
"cv": 59813,
29+
"cv-square": 59658,
30+
"datacite": 59676,
31+
"datacite-square": 59677,
32+
"dataverse": 59895,
33+
"dataverse-square": 59876,
34+
"dblp": 59727,
35+
"dblp-square": 59711,
36+
"depsy": 59770,
37+
"depsy-square": 59723,
38+
"doi": 59774,
39+
"doi-square": 59791,
40+
"dryad": 59772,
41+
"dryad-square": 59788,
42+
"figshare": 59777,
43+
"figshare-square": 59879,
44+
"google-scholar": 59860,
45+
"google-scholar-square": 59897,
46+
"hal": 59692,
47+
"hal-square": 59693,
48+
"ideas-repec": 59885,
49+
"ideas-repec-square": 59896,
50+
"ieee": 59689,
51+
"ieee-square": 59833,
52+
"impactstory": 59855,
53+
"impactstory-square": 59818,
54+
"inspire": 59881,
55+
"inspire-square": 59902,
56+
"isidore": 59702,
57+
"isidore-square": 59732,
58+
"jstor": 59704,
59+
"jstor-square": 59716,
60+
"lattes": 59827,
61+
"lattes-square": 59804,
62+
"mathoverflow": 59894,
63+
"mathoverflow-square": 59771,
64+
"mendeley": 59888,
65+
"mendeley-square": 59891,
66+
"nakala": 59712,
67+
"nakala-square": 59713,
68+
"closed-access": 59714,
69+
"closed-access-square": 59715,
70+
"open-access": 59705,
71+
"open-access-square": 59892,
72+
"openedition": 59718,
73+
"openedition-square": 59719,
74+
"orcid": 59865,
75+
"orcid-square": 59843,
76+
"osf": 59887,
77+
"osf-square": 59697,
78+
"overleaf": 59668,
79+
"overleaf-square": 59789,
80+
"phipapers": 59786,
81+
"philpapers-square": 59759,
82+
"piazza": 59802,
83+
"piazza-square": 59660,
84+
"protocols": 59730,
85+
"protocols-square": 59731,
86+
"publons": 59703,
87+
"publons-square": 59726,
88+
"pubmed": 59807,
89+
"pubmed-square": 59773,
90+
"researcherid": 59674,
91+
"researcherid-square": 59740,
92+
"researchgate": 59742,
93+
"researchgate-square": 59806,
94+
"sci-hub": 59737,
95+
"sci-hub-square": 59653,
96+
"scirate": 59790,
97+
"scirate-square": 59805,
98+
"semantic-scholar": 59758,
99+
"semantic-scholar-square": 59756,
100+
"springer": 59688,
101+
"springer-square": 59803,
102+
"zotero": 59746,
103+
"zotero-square": 59698,
104+
"open-data": 59750,
105+
"open-data-square": 59751,
106+
"open-materials": 59752,
107+
"open-materials-square": 59753,
108+
"preregistered": 59654,
109+
"preregistered-square": 59755,
110+
"elsevier": 59745,
111+
"elsevier-square": 59664,
112+
"inaturalist": 59648,
113+
"inaturalist-square": 59649,
114+
"inpn": 59650,
115+
"inpn-square": 59651,
116+
"moodle": 59655,
117+
"moodle-square": 59656,
118+
"psyarxiv": 59662,
119+
"psyarxiv-square": 59663,
120+
"ssrn": 59670,
121+
"ssrn-square": 59671,
122+
"stackoverflow": 59680,
123+
"stackoverflow-square": 59681,
124+
"pubpeer": 59682,
125+
"pubpeer-square": 59683,
126+
"scopus": 59678,
127+
"scopus-square": 59679,
128+
"zenodo": 59665,
129+
"obp": 59690,
130+
"obp-square": 59691,
131+
"hypothesis": 59738,
132+
"hypothesis-square": 59739,
133+
"ror": 59720,
134+
"ror-square": 59721
135+
}

config/manifest-template.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"glyphs": {},
3+
"checksum": {},
4+
"fonts": [],
5+
"options": {},
6+
"templates": []
7+
}

0 commit comments

Comments
 (0)