Gave the terminator bullets
This commit is contained in:
parent
be5869a88e
commit
e1e929d2f8
45 changed files with 354 additions and 270 deletions
|
|
@ -4,7 +4,7 @@ import java.util.ArrayList;
|
|||
import java.util.List;
|
||||
|
||||
import love.distributedrebirth.bassboon.clazz.BãßBȍőnAuthor注;
|
||||
import love.distributedrebirth.numberxd.base2t.part.T02PartBinary;
|
||||
import love.distributedrebirth.numberxd.base2t.part.T002PartBinary;
|
||||
import love.distributedrebirth.numberxd.base2t.type.V036Teger;
|
||||
import love.distributedrebirth.numberxd.base2t.type.V072Tong;
|
||||
|
||||
|
|
@ -24,16 +24,16 @@ public class Stringᶻᴰ {
|
|||
public V036Teger getCodePointByIndex(int index) {
|
||||
V072Tong tong = string.get(index >> 1);
|
||||
if ((index & 1) == 0) {
|
||||
return tong.getValue(T02PartBinary.PART_1);
|
||||
return tong.getValue(T002PartBinary.PART_1);
|
||||
} else {
|
||||
return tong.getValue(T02PartBinary.PART_2);
|
||||
return tong.getValue(T002PartBinary.PART_2);
|
||||
}
|
||||
}
|
||||
|
||||
public int charSize() {
|
||||
int result = 0;
|
||||
for (V072Tong points:string) {
|
||||
CodePointCommandᶻᴰ cmd = CodePointᶻᴰ.INSTANCE.getCommand(points.getValue(T02PartBinary.PART_1));
|
||||
CodePointCommandᶻᴰ cmd = CodePointᶻᴰ.INSTANCE.getCommand(points.getValue(T002PartBinary.PART_1));
|
||||
if (cmd == CodePointCommandᶻᴰ.START_LR) {
|
||||
result++;
|
||||
} else if (cmd == CodePointCommandᶻᴰ.START_RL) {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import java.util.Iterator;
|
|||
import java.util.List;
|
||||
|
||||
import love.distributedrebirth.bassboon.clazz.BãßBȍőnAuthor注;
|
||||
import love.distributedrebirth.numberxd.base2t.part.T02PartBinary;
|
||||
import love.distributedrebirth.numberxd.base2t.part.T002PartBinary;
|
||||
import love.distributedrebirth.numberxd.base2t.type.V036Teger;
|
||||
import love.distributedrebirth.numberxd.base2t.type.V072Tong;
|
||||
import love.distributedrebirth.unicode4d.CodePointCommandᶻᴰ;
|
||||
|
|
@ -30,8 +30,8 @@ public class DrawCharacter {
|
|||
public DrawCharacter(List<V072Tong> tongs) {
|
||||
this.tongs = tongs;
|
||||
for (V072Tong tong: tongs) {
|
||||
processCodePoint(tong.getValue(T02PartBinary.PART_1));
|
||||
processCodePoint(tong.getValue(T02PartBinary.PART_2));
|
||||
processCodePoint(tong.getValue(T002PartBinary.PART_1));
|
||||
processCodePoint(tong.getValue(T002PartBinary.PART_2));
|
||||
}
|
||||
if (currentContour != null) {
|
||||
contours.add(currentContour);
|
||||
|
|
@ -57,26 +57,26 @@ public class DrawCharacter {
|
|||
return;
|
||||
}
|
||||
if (CodePointCommandᶻᴰ.XY_MAX.equals(cmd)) {
|
||||
xMax = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T02PartBinary.PART_1);
|
||||
yMax = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T02PartBinary.PART_2);
|
||||
xMax = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_1);
|
||||
yMax = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_2);
|
||||
return;
|
||||
}
|
||||
if (CodePointCommandᶻᴰ.XY_MIN.equals(cmd)) {
|
||||
xMin = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T02PartBinary.PART_1);
|
||||
yMin = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T02PartBinary.PART_2);
|
||||
xMin = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_1);
|
||||
yMin = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_2);
|
||||
return;
|
||||
}
|
||||
if (CodePointCommandᶻᴰ.ADVANCE.equals(cmd)) {
|
||||
advanceWidth = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T02PartBinary.PART_1);
|
||||
leftSideBearing = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T02PartBinary.PART_2);
|
||||
advanceWidth = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_1);
|
||||
leftSideBearing = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_2);
|
||||
return;
|
||||
}
|
||||
if (CodePointCommandᶻᴰ.XY_ON_CURVE_START.equals(cmd)) {
|
||||
if (currentContour != null) {
|
||||
contours.add(currentContour);
|
||||
}
|
||||
int x = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T02PartBinary.PART_1);
|
||||
int y = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T02PartBinary.PART_2);
|
||||
int x = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_1);
|
||||
int y = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_2);
|
||||
currentContour = new DrawGlyphContour();
|
||||
currentContour.point(x, y, true);
|
||||
return;
|
||||
|
|
@ -85,21 +85,21 @@ public class DrawCharacter {
|
|||
if (currentContour != null) {
|
||||
contours.add(currentContour);
|
||||
}
|
||||
int x = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T02PartBinary.PART_1);
|
||||
int y = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T02PartBinary.PART_2);
|
||||
int x = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_1);
|
||||
int y = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_2);
|
||||
currentContour = new DrawGlyphContour();
|
||||
currentContour.point(x, y, true);
|
||||
return;
|
||||
}
|
||||
if (CodePointCommandᶻᴰ.XY_ON_CURVE.equals(cmd)) {
|
||||
int x = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T02PartBinary.PART_1);
|
||||
int y = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T02PartBinary.PART_2);
|
||||
int x = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_1);
|
||||
int y = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_2);
|
||||
currentContour.point(x, y, true);
|
||||
return;
|
||||
}
|
||||
if (CodePointCommandᶻᴰ.XY_OFF_CURVE.equals(cmd)) {
|
||||
int x = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T02PartBinary.PART_1);
|
||||
int y = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T02PartBinary.PART_2);
|
||||
int x = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_1);
|
||||
int y = CodePointᶻᴰ.INSTANCE.getArgument(codePoint, T002PartBinary.PART_2);
|
||||
currentContour.point(x, y, false);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue