summaryrefslogtreecommitdiff
path: root/src/FontFamily.java
diff options
context:
space:
mode:
authorArghKevin <kagheli@student.sdccd.edu>2024-04-29 13:32:18 -0700
committerArghKevin <kagheli@student.sdccd.edu>2024-04-29 13:32:18 -0700
commitb91b582d8a6c0b2e78a20a517c6e0d3b036725d8 (patch)
tree615a0ed4830a3ef1b17ec505001771962a5933f1 /src/FontFamily.java
parent55669ea76c7a08dfbaca5898070404c0f60d476d (diff)
Week 2. Stubs. Start of GUI.
Diffstat (limited to 'src/FontFamily.java')
-rw-r--r--src/FontFamily.java35
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;
+}