mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-03-07 11:51:50 +09:00
dumping temp files to OS's temp directory
This commit is contained in:
@@ -27,7 +27,7 @@ class FontTestGDX : Game() {
|
||||
|
||||
lateinit var camera: OrthographicCamera
|
||||
|
||||
private val testing = false
|
||||
private val testing = true
|
||||
|
||||
private val demotextName = if (testing) "testtext.txt" else "demotext.txt"
|
||||
private val outimageName = if (testing) "testing.PNG" else "demo.PNG"
|
||||
@@ -45,6 +45,9 @@ class FontTestGDX : Game() {
|
||||
batch = SpriteBatch()
|
||||
|
||||
|
||||
println(font.getWidth("हिन्दी"))
|
||||
|
||||
|
||||
// create faketex
|
||||
val fakepix = Pixmap(1,1,Pixmap.Format.RGBA8888)
|
||||
fakepix.drawPixel(0,0,-1)
|
||||
@@ -149,7 +152,6 @@ class FontTestGDX : Game() {
|
||||
override fun dispose() {
|
||||
font.dispose()
|
||||
faketex.dispose()
|
||||
File("./tmp_wenquanyi.tga").delete()
|
||||
}
|
||||
|
||||
fun scrollAdd(x: Int = 1) {
|
||||
|
||||
Reference in New Issue
Block a user