diff options
Diffstat (limited to 'src/FontFamily.java')
-rw-r--r-- | src/FontFamily.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/FontFamily.java b/src/FontFamily.java new file mode 100644 index 0000000..54e174f --- /dev/null +++ b/src/FontFamily.java @@ -0,0 +1,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; +} |