summaryrefslogtreecommitdiff
path: root/src/FontFamily.java
blob: 54e174ff6fa1fb5f55a757c53e9c00e62b42a20c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import java.util.ArrayList;
import java.util.HashMap;

/*
 * @author
 * Kian Agheli
 * 
 * References:
 * 
 * Date:
 * 2024-04-28
 * 
 * Purpose of class:
 * Store and operate on font family metadata.
 */

public class FontFamily {
	/* The directory containing the associated METADATA.pb */
	private String directoryName;
	/* Taken from first line of METADATA.pb */
	private String familyName;
	/* Taken from fonts/tags/all/families.csv */
	private ArrayList<String> styles;
	/* Taken from top level of METADATA.pb */
	private String dateAdded;
	/* Average glyph count of every font file specified in METADATA.pb */
	private int glyphCount;
	/* Average file size of every font file specified in METADATA.pb */
	private int fileSize;
	/* Author from METADATA.pb */
	private String author;
	/* total views, 7day views, 30day views, 90day views, year views.
	Taken from popularity.json. */
	private HashMap<String,Long> views;
}