Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 40f2221

Browse files
authored
Merge pull request #7396 from plotly/update-map-baselines
Update map baselines and fix failing font download
2 parents a9cebef + e67e61a commit 40f2221

24 files changed

+9
-2
lines changed

‎.circleci/download_google_fonts.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,19 @@
22

33
dirOut = '.circleci/fonts/truetype/googleFonts/'
44

5-
def download(repo, family, types):
5+
def download(repo, family, types):
66
for t in types :
77
name = family + t + '.ttf'
88
url = repo + name + '?raw=true'
99
print(url)
1010
req = requests.get(url, allow_redirects=True)
11+
if req.status_code != 200:
12+
raise RuntimeError(f"""
13+
Download failed.
14+
Status code: {req.status_code}
15+
Message: {req.reason}
16+
"""
17+
)
1118
open(dirOut + name, 'wb').write(req.content)
1219

1320
download(
@@ -82,7 +89,7 @@ def download(repo, family, types) :
8289
)
8390

8491
download(
85-
'https://github.com/expo/google-fonts/blob/master/font-packages/gravitas-one/',
92+
'https://github.com/expo/google-fonts/blob/main/font-packages/gravitas-one/400Regular/',
8693
'GravitasOne',
8794
[
8895
'_400Regular'

‎test/image/baselines/map_0.png

-5.42 KB
Loading[フレーム]

‎test/image/baselines/map_angles.png

1.52 KB
Loading[フレーム]
0 Bytes
Loading[フレーム]

‎test/image/baselines/map_bubbles.png

-4.99 KB
Loading[フレーム]
-4.32 KB
Loading[フレーム]

‎test/image/baselines/map_carto-text.png

-4.81 KB
Loading[フレーム]
-8.17 KB
Loading[フレーム]
-366 Bytes
Loading[フレーム]
-3.08 KB
Loading[フレーム]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /