mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-03-07 11:51:50 +09:00
will use config string this time
This commit is contained in:
@@ -1,12 +1,26 @@
|
||||
package net.torvald.terrarumtypewriterbitmap.gdx
|
||||
|
||||
import com.badlogic.gdx.graphics.g2d.BitmapFont
|
||||
import java.io.File
|
||||
import java.io.Reader
|
||||
|
||||
/**
|
||||
* Config File Syntax:
|
||||
*
|
||||
* ```
|
||||
* identifier,image file name,relative codepoint
|
||||
* # working example:
|
||||
* intl_qwerty_typewriter,typewriter_intl_qwerty.tga,0
|
||||
* ko_kr_3set-390_typewriter,typewriter_ko_3set-390.tga,16
|
||||
* ```
|
||||
*
|
||||
* // the Relative Codepoint of 16 should point to U+F3000
|
||||
*
|
||||
* Created by minjaesong on 2021-11-04.
|
||||
*/
|
||||
class TerrarumTypewriterBitmap(
|
||||
fontDir: String,
|
||||
configFile: Reader,
|
||||
val flipY: Boolean = false,
|
||||
var errorOnUnknownChar: Boolean = false,
|
||||
val textCacheSize: Int = 256,
|
||||
|
||||
Reference in New Issue
Block a user