Added more plane1 fonts

This commit is contained in:
Willem Cazander 2022-03-28 23:34:18 +02:00
parent 970f142aa5
commit f3fa4ffbf3
56 changed files with 2412 additions and 22 deletions

View file

@ -9,12 +9,10 @@ import love.distributedrebirth.numberxd.base2t.type.V036Teger;
import love.distributedrebirth.numberxd.base2t.type.V072Tong;
import love.distributedrebirth.unicode4d.CodePointCommandᶻᴰ;
import love.distributedrebirth.unicode4d.CodePointᶻᴰ;
import love.distributedrebirth.unicode4d.atlas.FontAtlasStoreGlyph;
import love.distributedrebirth.unicode4d.draw.DrawGlyphContour.ImGlyphPoint;
public class DrawCharacter {
private final FontAtlasStoreGlyph glyph;
private final List<V072Tong> tongs;
private final List<DrawGlyphContour> contours = new ArrayList<>();
private final DrawGlyphPath glyphPath;
private DrawGlyphContour currentContour;
@ -27,9 +25,9 @@ public class DrawCharacter {
private int leftSideBearing;
private boolean leftToRight;
public DrawCharacter(FontAtlasStoreGlyph glyph) {
this.glyph = glyph;
for (V072Tong tong: glyph.getTongs()) {
public DrawCharacter(List<V072Tong> tongs) {
this.tongs = tongs;
for (V072Tong tong: tongs) {
processCodePoint(tong.getValue(T02PartBinary.PART_1));
processCodePoint(tong.getValue(T02PartBinary.PART_2));
}
@ -152,10 +150,6 @@ public class DrawCharacter {
return p;
}
public FontAtlasStoreGlyph getGlyph() {
return glyph;
}
public List<DrawGlyphContour> getContours() {
return contours;
}