ttf: get rid of slow xmls

This commit is contained in:
honfika@gmail.com
2015-03-29 14:50:27 +02:00
parent fe83a17aae
commit 7fd15219b9
94 changed files with 2990 additions and 41017 deletions

View File

@@ -46,27 +46,20 @@ public class FContour {
this.points = new ArrayList<>();
}
FContour(PVector[] points) {
FContour(FPoint[] points) {
this.points = new ArrayList<>();
for (PVector p : points) {
this.points.add(new FPoint(p));
for (FPoint p : points) {
this.points.add(p);
}
}
FContour(PVector[] points, PVector[] controlpoints) {
FContour(FPoint[] points, FPoint[] controlpoints) {
this.points = new ArrayList<>();
for (int i=0; i<points.length; i++) {
this.points.add(new FPoint(points[i], controlpoints[i] ));
}
}
FContour(FPoint[] points) {
this.points = new ArrayList<>();
for (int i=0; i<points.length; i++) {
this.points.add(points[i]);
}
}
public List<FPoint> getPoints() {
return points;
}
@@ -76,10 +69,10 @@ public class FContour {
return pointsArray;
}
public void setPoints(PVector[] points) {
public void setPoints(FPoint[] points) {
this.points = new ArrayList<>();
for (PVector p : points) {
this.points.add(new FPoint(p));
for (FPoint p : points) {
this.points.add(p);
}
}