Skip to content

Commit fd456f3

Browse files
authored
Merge pull request #29 from rezw4n/master
Fixed runtime error in FT2Font
2 parents c17313d + 6bf286c commit fd456f3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ If you pass a matplotlib colormap, you can specify `kind="elevation"` to color t
115115
```python
116116
from ridge_map import FontManager
117117

118-
font = FontManager('https://github.com/google/fonts/blob/master/ofl/uncialantiqua/UncialAntiqua-Regular.ttf?raw=True')
118+
font = FontManager('https://github.com/google/fonts/blob/main/ofl/uncialantiqua/UncialAntiqua-Regular.ttf?raw=true')
119119
rm = RidgeMap((-156.250305,18.890695,-154.714966,20.275080), font=font.prop)
120120

121121
values = rm.get_elevation_data(num_lines=100)
@@ -259,4 +259,4 @@ Elevation data used by `ridge_map` comes from NASA's [Shuttle Radar Topography M
259259

260260

261261

262-
![gif](https://www2.jpl.nasa.gov/srtm/images/SRTM_2-24-2016.gif)
262+
![gif](https://www2.jpl.nasa.gov/srtm/images/SRTM_2-24-2016.gif)

ridge_map/ridge_map.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class FontManager:
2929

3030
def __init__(
3131
self,
32-
github_url="https://github.com/google/fonts/blob/master/ofl/cinzel/static/Cinzel-Regular.ttf?raw=true", # pylint: disable=line-too-long
32+
github_url="https://github.com/google/fonts/blob/main/ofl/cinzel/static/Cinzel-Regular.ttf?raw=true", # pylint: disable=line-too-long
3333
):
3434
"""
3535
Lazily download a font.
@@ -38,7 +38,7 @@ def __init__(
3838
----------
3939
github_url : str
4040
Can really be any .ttf file, but probably looks like
41-
"https://github.com/google/fonts/blob/master/ofl/cinzel/Cinzel-Regular.ttf?raw=true"
41+
"https://github.com/google/fonts/blob/main/ofl/cinzel/static/Cinzel-Regular.ttf?raw=true"
4242
"""
4343
self.github_url = github_url
4444
self._prop = None

0 commit comments

Comments
 (0)