buildroot/package/googlefontdirectory/Config.in
Bartosz Bilas 5bb7b1a86d package/googlefontdirectory: change to Google Fonts repo
The current repository doesn't include new fonts, so this commit
changes the package to use the new official google github repository
which contains a lot of new available fonts.

The fonts are now organized in sub-folders per license, so we have to
take into this into account, and the
BR2_PACKAGE_GOOGLEFONTDIRECTORY_FONTS should now contain values such
as ufl/ubuntu or ofl/marvel.

Because the different fonts have different license files, we really
need to use each per-font license file, which explains why we have so
many hashes in the .hash file.

The list of licenses and license files is automatically derived from
the list of fonts in BR2_PACKAGE_GOOGLEFONTDIRECTORY_FONTS. Note that
a very small set of fonts (~15 among 1000+ fonts) lack a license file,
so if those fonts are used, legal-info will fail because the expected
license file doesn't exist. We consider this as a bug that should be
reported upstream, because each font should have a license file.

While we're at it, we use a foreach loop to install the fonts.

Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-02-06 14:02:21 +01:00

20 lines
513 B
Plaintext

config BR2_PACKAGE_GOOGLEFONTDIRECTORY
bool "Google font directory"
help
Font files available from Google Fonts
https://github.com/google/fonts
if BR2_PACKAGE_GOOGLEFONTDIRECTORY
config BR2_PACKAGE_GOOGLEFONTDIRECTORY_FONTS
string "List of fonts to install"
default "ufl/ubuntu"
help
Specify a space-separated list of fonts to install. They
correspond to the path of the font directory within Google
Font directory code base. For example: ufl/ubuntu,
apache/kranky or ofl/gleego.
endif