From b91b582d8a6c0b2e78a20a517c6e0d3b036725d8 Mon Sep 17 00:00:00 2001 From: ArghKevin Date: Mon, 29 Apr 2024 13:32:18 -0700 Subject: Week 2. Stubs. Start of GUI. --- src/FontFamily.java | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/FontFamily.java (limited to 'src/FontFamily.java') 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 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 views; +} -- cgit v1.2.3