1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 08:27:22 +03:00

Try not to use DejaVu fonts for Windows tests

This commit is contained in:
Guillaume Ayoub 2020-04-05 23:00:41 +02:00
parent 6ad3bae86a
commit 9ae77aff62
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ addons:
before_install:
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then export "PATH=$PATH;C:\msys64\mingw64\bin"; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install -y python dejavufonts; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install -y python; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then wget "http://repo.msys2.org/distrib/x86_64/msys2-base-x86_64-20180531.tar.xz"; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then 7z e msys2-base-x86_64-20180531.tar.xz; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then 7z x -y msys2-base-x86_64-20180531.tar -oc:\\; fi

View File

@ -22,7 +22,7 @@ from ..urls import path2url
# Lists of fonts with many variants (including condensed)
if sys.platform.startswith('win'): # pragma: no cover
SANS_FONTS = 'DejaVu Sans, Arial Nova, Arial, sans'
SANS_FONTS = 'Arial Nova, Arial, sans'
MONO_FONTS = 'Courier New, Courier, monospace'
else: # pragma: no cover
SANS_FONTS = 'DejaVu Sans, sans'