Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix downloading OpenSans fonts in image test #5768

Merged
merged 5 commits into from
Jun 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,17 @@ jobs:
- run:
name: install liberation2 fonts
command: sudo apt-get install fonts-liberation2
- run:
name: install OpenSans fonts
command: sudo apt-get install fonts-open-sans
- run:
name: install NotoSansCJK fonts
command: sudo apt install fonts-noto-cjk
- run:
name: download google fonts e.g. GravitasOne, NotoSansMono, NotoSans, NotoSerif, Old_Standard_TT, PT_Sans_Narrow, Raleway and Roboto
command: python3 ./.circleci/download_google_fonts.py
- run:
name: install OpenSans as well as downloaded google fonts
name: install downloaded google fonts
command: |
sudo cp -r .circleci/fonts/ /usr/share/
sudo fc-cache -f
Expand Down
19 changes: 0 additions & 19 deletions .circleci/download_google_fonts.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,25 +50,6 @@ def download(repo, family, types) :
]
)

"""
download(
'https://github.com/googlefonts/opensans/blob/main/fonts/ttf/',
'OpenSans',
[
'Bold',
'BoldItalic',
'ExtraBold',
'ExtraBoldItalic',
'Italic',
'Light',
'LightItalic',
'Regular',
'Semibold',
'SemiboldItalic',
]
)
"""

download(
'https://github.com/google/fonts/blob/main/ofl/ptsansnarrow/',
'PT_Sans-Narrow-Web',
Expand Down
1 change: 1 addition & 0 deletions .circleci/fonts/truetype/googleFonts/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.