reformat ttf source

This commit is contained in:
honfika@gmail.com
2015-03-29 15:16:00 +02:00
parent 7fd15219b9
commit 2d37d31dcc
34 changed files with 4330 additions and 4151 deletions

View File

@@ -5,26 +5,24 @@ import fontastic.Fontastic;
import java.io.File;
import java.io.IOException;
public class FontaTest {
/**
* @param args the command line arguments
*/
public static void main(String[] args) throws IOException {
File file=new File("example.ttf");
File file = new File("example.ttf");
file.delete();
Fontastic f = new Fontastic("ExampleFont",file);
Fontastic f = new Fontastic("ExampleFont", file);
f.setAuthor("Nobody");
FPoint[] points = new FPoint[]{ // Define a FPoint array containing the points of the shape
new FPoint(0, 0),
new FPoint(512,0),
//new FPoint(256, 1024),
new FPoint(new FPoint(256,1024), new FPoint(512,512)),
new FPoint(0, 0)
};
FPoint[] points = new FPoint[]{ // Define a FPoint array containing the points of the shape
new FPoint(0, 0),
new FPoint(512, 0),
//new FPoint(256, 1024),
new FPoint(new FPoint(256, 1024), new FPoint(512, 512)),
new FPoint(0, 0)
};
f.addGlyph('P').addContour(points); // Assign contour to character A
f.buildFont();
f.buildFont();
}
}