summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/FontFamily.java13
-rw-r--r--src/LineGraph.java2
2 files changed, 11 insertions, 4 deletions
diff --git a/src/FontFamily.java b/src/FontFamily.java
index 39fae26..cff4f87 100644
--- a/src/FontFamily.java
+++ b/src/FontFamily.java
@@ -23,8 +23,8 @@ public class FontFamily {
private HashMap<String,Integer> styles;
/* Taken from top level of METADATA.pb */
private String dateAdded;
- /* Languages supported. */
- private String[] languages;
+ /* Unicode ranges. */
+ private String[] subsets;
private String designer;
/* total views, 7day views, 30day views, 90day views, year views.
Taken from popularity.json. */
@@ -50,7 +50,7 @@ public class FontFamily {
private void parseMetadata(JSONReader metadata) {
familyName = metadata.get("name");
dateAdded = metadata.get("date_added");
- languages = metadata.getAll("languages");
+ subsets = metadata.getAll("subsets");
designer = metadata.get("designer");
license = metadata.get("license");
category = metadata.get("category");
@@ -67,4 +67,11 @@ public class FontFamily {
*/
private void parseStyles(CSVReader styles) {
}
+
+ public String getFamilyName() {
+ return familyName;
+ }
+ public String[] getSubsets() {
+ return subsets;
+ }
}
diff --git a/src/LineGraph.java b/src/LineGraph.java
index 4e05bb7..129bb1c 100644
--- a/src/LineGraph.java
+++ b/src/LineGraph.java
@@ -14,7 +14,7 @@ import javax.swing.*;
*/
public class LineGraph {
- int[][] coordinates; // A line graph has-a set of coordinates
+ private int[][] coordinates; // A line graph has-a set of coordinates
/**
* Constructor.