-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
闫茂源
committed
May 23, 2024
1 parent
bb64b96
commit 73f3689
Showing
12 changed files
with
60 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
7 changes: 0 additions & 7 deletions
7
buildSrc/src/main/groovy/jme3-freetype-font.java-application-conventions.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,4 @@ | ||
/* | ||
* This file was generated by the Gradle 'init' task. | ||
*/ | ||
|
||
plugins { | ||
// Apply the common convention plugin for shared build configuration between library and application projects. | ||
id 'jme3-freetype-font.java-common-conventions' | ||
|
||
// Apply the application plugin to add support for building a CLI application in Java. | ||
id 'application' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 0 additions & 70 deletions
70
lib/src/main/java/io/github/jmecn/font/packer/listener/BitmapTextPageListener.java
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
lib/src/main/java/io/github/jmecn/font/utils/FileUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package io.github.jmecn.font.utils; | ||
|
||
import io.github.jmecn.font.exception.FtRuntimeException; | ||
|
||
import java.io.BufferedInputStream; | ||
import java.io.ByteArrayOutputStream; | ||
import java.io.IOException; | ||
import java.io.InputStream; | ||
|
||
/** | ||
* desc: | ||
* | ||
* @author yanmaoyuan | ||
*/ | ||
public final class FileUtils { | ||
private FileUtils() { | ||
} | ||
|
||
public static byte[] readAllBytes(InputStream inputStream) { | ||
ByteArrayOutputStream bos = new ByteArrayOutputStream(65536); | ||
BufferedInputStream bis = new BufferedInputStream(inputStream); | ||
byte[] buffer = new byte[4096]; | ||
int len; | ||
try { | ||
while ((len = bis.read(buffer)) != -1) { | ||
bos.write(buffer, 0, len); | ||
} | ||
} catch (IOException e) { | ||
throw new FtRuntimeException("Read font data failed", e); | ||
} | ||
|
||
return bos.toByteArray(); | ||
} | ||
} |
65 changes: 0 additions & 65 deletions
65
lib/src/test/java/io/github/jmecn/font/example/TestRtlBitmapText.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters