Skip to content

Commit

Permalink
15.1.04
Browse files Browse the repository at this point in the history
  • Loading branch information
squid233 committed Nov 17, 2023
1 parent ef64968 commit 3a7b250
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 9 deletions.
5 changes: 1 addition & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,8 @@ publishing.publications {
developers {
String[] prop = (project.developers as String).split(',')
for (String s : prop) {
String[] dev = s.split(':', 3)
developer {
id.set dev[0]
name.set dev[1]
email.set dev[2]
id.set s
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ org.gradle.jvmargs=-Dfile.encoding=UTF-8
projGroupId=io.github.over-run
projArtifactId=unifont
projName=unifont
projVersion=15.1.01.1
projVersion=15.1.04
projDesc=Java Unifont binding
projVcs=Over-Run/unifont
projBranch=0.x
Expand All @@ -14,4 +14,4 @@ orgName=Overrun Organization
orgUrl=https://over-run.github.io/

# Developers
developers=squid233:squid233:[email protected]
developers=squid233
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
3 changes: 2 additions & 1 deletion gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ done
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/org/overrun/unifont/UnifontUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ public final class UnifontUtil {
public static final int IMAGE_SIZE = 4096;
private static final float INV_IMAGE_SIZE = 1.0f / IMAGE_SIZE;

private UnifontUtil() {
//no instance
}

/**
* Gets the x advance for the given codepoint.
*
Expand All @@ -49,6 +53,7 @@ public final class UnifontUtil {
*/
public static int xAdvance(int codePoint) {
if (codePoint >= ' ' && codePoint <= '~') return 8;
// ZWNJ
if (codePoint == 0x200C) return 0;
return 16;
}
Expand Down
Binary file modified src/main/resources/assets/_overrun/fonts/unifont.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/resources/assets/_overrun/fonts/unifont_jp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/resources/assets/_overrun/fonts/unifont_plane1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/test/java/DataValidator.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private static void validate(String path) throws IOException {
for (int x = 0; x < width; x++) {
final int argb = image.getRGB(x, y);
if (argb != 0xffffffff && argb != 0xff000000) {
throw new IllegalStateException(path.substring(path.lastIndexOf('/') + 1) + ": " + "Invalid data 0x" + Integer.toHexString(argb) + " at x: " + x + ", y: " + y);
System.out.println(path.substring(path.lastIndexOf('/') + 1) + ": " + "Invalid data 0x" + Integer.toHexString(argb) + " at x: " + x + ", y: " + y);
}
}
}
Expand Down

0 comments on commit 3a7b250

Please sign in to comment.