Host TTF files on website
As an upstream project, we should host versions of our font files, both as a LATEST Tarball that contains everything, and as individual fonts.
Ideally we should provide some metadata as well.
Attaching this file that as a sampler. sync_fonts.sh
Font tarball structure.
A basic font tarball contains the following folders and files.
- TTF - Folder containing TTF files for the font.
- OTF - Folder containing OTF files for the font.
- FONTCONFIG - fontconfig file for the font family
- INFO - File containing two sections. SHORT section is a one liner about the font. LONG is a full description. COPYING - Copyright terms.
Files to be provided
For each font we produce, we should produce the following files.
- FONT_NAME_VERSION.tar.gz - A tarball containing the font file and an INFO file, with the font name and version in the filename. The DESCRIPTION file should contain two parts - a one liner (short desc) and a larger description (long)
- FONT_NAME_LATEST.tar.gz - A symlink that contains font name and the text "LATEST", linking to the above (see 1.).
- FONT_NAME_VERSION.tar.gz.SHA256 - A file with the SHA256 checksum of FONT_NAME_VERSION.tar.gz
- FONT_NAME_LATEST.tar.gz.SHA256 - A file linking to the above ( see 3.)
- FONT_NAME_VERSION.tar.gz.md5 - A file with the MD5 checksum of FONT_NAME_VERSION.tar.gz
- FONT_NAME_LATEST.tar.gz.md5 - A file linking to the above (see 5.)
In addition, the following files too.
- FONTS_ALL_LATEST.tar.gz - A file that contains numbers 1,3,5 for all the font files we make.
EXAMPLE.
Let the fontnames be Manjari and Meera.
Sample output links
-
smc.org.in/downloads/fonts/Manjari_1.1.tar.gz
-
smc.org.in/downloads/fonts/Manjari_LATEST.tar.gz
-
smc.org.in/downloads/fonts/Meera_1.7.tar.gz
-
smc.org.in/downloads/fonts/Meera_LATEST.tar.gz
-
smc.org.in/downloads/fonts/Manjari_1.1.tar.gz.SHA256
-
smc.org.in/downloads/fonts/Manjari_LATEST.tar.gz.SHA256
-
smc.org.in/downloads/fonts/Meera_1.7.tar.gz.SHA256
-
smc.org.in/downloads/fonts/Meera_LATEST.tar.gz.SHA256
-
smc.org.in/downloads/fonts/Manjari_1.1.tar.gz.MD5
-
smc.org.in/downloads/fonts/Manjari_LATEST.tar.gz.MD5
-
smc.org.in/downloads/fonts/Meera_1.7.tar.gz.MD5
-
smc.org.in/downloads/fonts/Meera_LATEST.tar.gz.MD5
-
smc.org.in/downloads/fonts/FONTS_ALL_LATEST.tar.gz (contains all the above, with LATEST in the filename)