Support Google Font dependencies

Allow downloading fonts from Google Font at install time.
Closes GitLab issue #595, thanks to Martin (@efelon) for the
report. Closes re-opened GitLab issue #343.
Remove included Lato font.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-06-08 17:36:58 -04:00
parent db5511127d
commit 2fcb36c568
22 changed files with 224 additions and 12637 deletions

View File

@@ -3,7 +3,7 @@ from __future__ import unicode_literals
from django.core import management
from django.utils.translation import ugettext_lazy as _
from ...classes import JavaScriptDependency
from ...classes import GoogleFontDependency, JavaScriptDependency
class Command(management.BaseCommand):
@@ -24,3 +24,7 @@ class Command(management.BaseCommand):
app_label=options['app'], force=options['force'],
subclass_only=True
)
GoogleFontDependency.install_multiple(
app_label=options['app'], force=options['force'],
subclass_only=True
)