mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-03-07 11:51:50 +09:00
add: error msg for illegal linotype dimension
This commit is contained in:
2
.idea/artifacts/TerrarumSansBitmap.xml
generated
2
.idea/artifacts/TerrarumSansBitmap.xml
generated
@@ -1,6 +1,6 @@
|
||||
<component name="ArtifactManager">
|
||||
<artifact type="jar" name="TerrarumSansBitmap">
|
||||
<output-path>$PROJECT_DIR$/FontTestGDX/lib</output-path>
|
||||
<output-path>$PROJECT_DIR$/lib</output-path>
|
||||
<root id="archive" name="TerrarumSansBitmap.jar">
|
||||
<element id="module-output" name="BuildJAR_TerrarumSansBitmap" />
|
||||
<element id="directory" name="META-INF">
|
||||
|
||||
86
.idea/workspace.xml
generated
86
.idea/workspace.xml
generated
@@ -6,15 +6,21 @@
|
||||
</artifacts-to-build>
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="22c5bc80-996c-4846-b173-7dc8c2096fe3" name="Default" comment="" />
|
||||
<list default="true" id="22c5bc80-996c-4846-b173-7dc8c2096fe3" name="Default" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/artifacts/TerrarumSansBitmap.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/artifacts/TerrarumSansBitmap.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/FontTestGDX/FontTestGDX.iml" beforeDir="false" afterPath="$PROJECT_DIR$/FontTestGDX/FontTestGDX.iml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/FontTestGDX/META-INF/MANIFEST.MF" beforeDir="false" afterPath="$PROJECT_DIR$/FontTestGDX/META-INF/MANIFEST.MF" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/FontTestGDX/lib/TerrarumSansBitmap.jar" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/net/torvald/terrarumsansbitmap/gdx/GameFontBase.kt" beforeDir="false" afterPath="$PROJECT_DIR$/src/net/torvald/terrarumsansbitmap/gdx/GameFontBase.kt" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/testing.PNG" beforeDir="false" afterPath="$PROJECT_DIR$/testing.PNG" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/testtext.txt" beforeDir="false" afterPath="$PROJECT_DIR$/testtext.txt" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="FavoritesManager">
|
||||
<favorites_list name="BuildJAR_TerrarumSansBitmap" />
|
||||
</component>
|
||||
<component name="FileTemplateManagerImpl">
|
||||
<option name="RECENT_TEMPLATES">
|
||||
<list>
|
||||
@@ -30,15 +36,15 @@
|
||||
<component name="ProjectId" id="1aVE5t6KObkWt36lb07GBy1GY1S" />
|
||||
<component name="ProjectViewState">
|
||||
<option name="hideEmptyMiddlePackages" value="true" />
|
||||
<option name="showExcludedFiles" value="true" />
|
||||
<option name="showLibraryContents" value="true" />
|
||||
</component>
|
||||
<component name="PropertiesComponent">
|
||||
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
|
||||
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
|
||||
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
|
||||
<property name="SearchEverywhereHistoryKey" value="HashMap	PSI	JAVA://java.util.HashMap soft wr	ACTION	EditorToggleUseSoftWraps" />
|
||||
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
||||
<property name="project.structure.last.edited" value="Artifacts" />
|
||||
<property name="last_opened_file_path" value="$PROJECT_DIR$/lib" />
|
||||
<property name="project.structure.last.edited" value="Modules" />
|
||||
<property name="project.structure.proportion" value="0.15" />
|
||||
<property name="project.structure.side.proportion" value="0.32068965" />
|
||||
<property name="settings.editor.selected.configurable" value="preferences.language.Kotlin" />
|
||||
@@ -93,10 +99,10 @@
|
||||
<option name="MAIN_CLASS_NAME" value="FontTestGDXKt" />
|
||||
<option name="WORKING_DIRECTORY" value="" />
|
||||
<method v="2">
|
||||
<option name="Make" enabled="true" />
|
||||
<option name="BuildArtifacts" enabled="true">
|
||||
<artifact name="TerrarumSansBitmap" />
|
||||
</option>
|
||||
<option name="Make" enabled="true" />
|
||||
</method>
|
||||
</configuration>
|
||||
<configuration default="true" type="KotlinStandaloneScriptRunConfigurationType">
|
||||
@@ -157,6 +163,7 @@
|
||||
</list>
|
||||
</recent_temporary>
|
||||
</component>
|
||||
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
||||
<component name="SvnConfiguration">
|
||||
<configuration />
|
||||
</component>
|
||||
@@ -184,55 +191,50 @@
|
||||
<map>
|
||||
<entry key="MAIN">
|
||||
<value>
|
||||
<State>
|
||||
<option name="COLUMN_ORDER" />
|
||||
</State>
|
||||
<State />
|
||||
</value>
|
||||
</entry>
|
||||
</map>
|
||||
</option>
|
||||
<option name="oldMeFiltersMigrated" value="true" />
|
||||
</component>
|
||||
<component name="WindowStateProjectService">
|
||||
<state x="2480" y="262" key="#Project_Structure" timestamp="1586813023076">
|
||||
<screen x="1920" y="0" width="1920" height="1200" />
|
||||
<state x="86" y="97" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1601262877161">
|
||||
<screen x="72" y="0" width="1848" height="1080" />
|
||||
</state>
|
||||
<state x="2480" y="262" key="#Project_Structure/1920.0.1920.1200/3840.75.1680.1050/0.0.1920.1200@1920.0.1920.1200" timestamp="1586813023076" />
|
||||
<state x="2731" y="492" key="#com.intellij.ide.util.projectWizard.JdkChooserPanel.MyDialog" timestamp="1586812200948">
|
||||
<screen x="1920" y="0" width="1920" height="1200" />
|
||||
<state x="86" y="97" key="#com.intellij.execution.impl.EditConfigurationsDialog/72.0.1848.1080@72.0.1848.1080" timestamp="1601262877161" />
|
||||
<state x="391" y="199" key="FileChooserDialogImpl" timestamp="1601263114996">
|
||||
<screen x="72" y="0" width="1848" height="1080" />
|
||||
</state>
|
||||
<state x="2731" y="492" key="#com.intellij.ide.util.projectWizard.JdkChooserPanel.MyDialog/1920.0.1920.1200/3840.75.1680.1050/0.0.1920.1200@1920.0.1920.1200" timestamp="1586812200948" />
|
||||
<state width="1872" height="400" key="GridCell.Tab.0.bottom" timestamp="1586816654562">
|
||||
<screen x="1920" y="0" width="1920" height="1200" />
|
||||
<state x="391" y="199" key="FileChooserDialogImpl/72.0.1848.1080@72.0.1848.1080" timestamp="1601263114996" />
|
||||
<state width="1802" height="288" key="GridCell.Tab.0.bottom" timestamp="1601263214814">
|
||||
<screen x="72" y="0" width="1848" height="1080" />
|
||||
</state>
|
||||
<state width="1872" height="400" key="GridCell.Tab.0.bottom/1920.0.1920.1200/3840.75.1680.1050/0.0.1920.1200@1920.0.1920.1200" timestamp="1586816654562" />
|
||||
<state width="1872" height="400" key="GridCell.Tab.0.center" timestamp="1586816654562">
|
||||
<screen x="1920" y="0" width="1920" height="1200" />
|
||||
<state width="1802" height="288" key="GridCell.Tab.0.bottom/72.0.1848.1080@72.0.1848.1080" timestamp="1601263214814" />
|
||||
<state width="1802" height="288" key="GridCell.Tab.0.center" timestamp="1601263214814">
|
||||
<screen x="72" y="0" width="1848" height="1080" />
|
||||
</state>
|
||||
<state width="1872" height="400" key="GridCell.Tab.0.center/1920.0.1920.1200/3840.75.1680.1050/0.0.1920.1200@1920.0.1920.1200" timestamp="1586816654562" />
|
||||
<state width="1872" height="400" key="GridCell.Tab.0.left" timestamp="1586816654560">
|
||||
<screen x="1920" y="0" width="1920" height="1200" />
|
||||
<state width="1802" height="288" key="GridCell.Tab.0.center/72.0.1848.1080@72.0.1848.1080" timestamp="1601263214814" />
|
||||
<state width="1802" height="288" key="GridCell.Tab.0.left" timestamp="1601263214814">
|
||||
<screen x="72" y="0" width="1848" height="1080" />
|
||||
</state>
|
||||
<state width="1872" height="400" key="GridCell.Tab.0.left/1920.0.1920.1200/3840.75.1680.1050/0.0.1920.1200@1920.0.1920.1200" timestamp="1586816654560" />
|
||||
<state width="1872" height="400" key="GridCell.Tab.0.right" timestamp="1586816654562">
|
||||
<screen x="1920" y="0" width="1920" height="1200" />
|
||||
<state width="1802" height="288" key="GridCell.Tab.0.left/72.0.1848.1080@72.0.1848.1080" timestamp="1601263214814" />
|
||||
<state width="1802" height="288" key="GridCell.Tab.0.right" timestamp="1601263214814">
|
||||
<screen x="72" y="0" width="1848" height="1080" />
|
||||
</state>
|
||||
<state width="1872" height="400" key="GridCell.Tab.0.right/1920.0.1920.1200/3840.75.1680.1050/0.0.1920.1200@1920.0.1920.1200" timestamp="1586816654562" />
|
||||
<state width="1872" height="400" key="GridCell.Tab.1.bottom" timestamp="1586816654480">
|
||||
<screen x="1920" y="0" width="1920" height="1200" />
|
||||
<state width="1802" height="288" key="GridCell.Tab.0.right/72.0.1848.1080@72.0.1848.1080" timestamp="1601263214814" />
|
||||
<state x="91" y="33" key="SettingsEditor" timestamp="1601263194258">
|
||||
<screen x="72" y="0" width="1848" height="1080" />
|
||||
</state>
|
||||
<state width="1872" height="400" key="GridCell.Tab.1.bottom/1920.0.1920.1200/3840.75.1680.1050/0.0.1920.1200@1920.0.1920.1200" timestamp="1586816654480" />
|
||||
<state width="1872" height="400" key="GridCell.Tab.1.center" timestamp="1586816654480">
|
||||
<screen x="1920" y="0" width="1920" height="1200" />
|
||||
<state x="91" y="33" key="SettingsEditor/72.0.1848.1080@72.0.1848.1080" timestamp="1601263194258" />
|
||||
<state width="502" height="446" key="SwitcherDM" timestamp="1601260171295">
|
||||
<screen x="72" y="0" width="1848" height="1080" />
|
||||
</state>
|
||||
<state width="1872" height="400" key="GridCell.Tab.1.center/1920.0.1920.1200/3840.75.1680.1050/0.0.1920.1200@1920.0.1920.1200" timestamp="1586816654480" />
|
||||
<state width="1872" height="400" key="GridCell.Tab.1.left" timestamp="1586816654480">
|
||||
<screen x="1920" y="0" width="1920" height="1200" />
|
||||
<state width="502" height="446" key="SwitcherDM/72.0.1848.1080@72.0.1848.1080" timestamp="1601260171295" />
|
||||
<state width="600" height="428" key="javadoc.popup" timestamp="1601255716058">
|
||||
<screen x="72" y="0" width="1848" height="1080" />
|
||||
</state>
|
||||
<state width="1872" height="400" key="GridCell.Tab.1.left/1920.0.1920.1200/3840.75.1680.1050/0.0.1920.1200@1920.0.1920.1200" timestamp="1586816654480" />
|
||||
<state width="1872" height="400" key="GridCell.Tab.1.right" timestamp="1586816654480">
|
||||
<screen x="1920" y="0" width="1920" height="1200" />
|
||||
</state>
|
||||
<state width="1872" height="400" key="GridCell.Tab.1.right/1920.0.1920.1200/3840.75.1680.1050/0.0.1920.1200@1920.0.1920.1200" timestamp="1586816654480" />
|
||||
<state width="600" height="428" key="javadoc.popup/72.0.1848.1080@72.0.1848.1080" timestamp="1601255716058" />
|
||||
</component>
|
||||
<component name="antWorkspaceConfiguration">
|
||||
<option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
|
||||
|
||||
@@ -10,5 +10,6 @@
|
||||
<orderEntry type="library" name="KotlinJavaRuntime" level="project" />
|
||||
<orderEntry type="library" name="GdxLib" level="project" />
|
||||
<orderEntry type="library" name="TesterLib" level="project" />
|
||||
<orderEntry type="module" module-name="BuildJAR_TerrarumSansBitmap" />
|
||||
</component>
|
||||
</module>
|
||||
@@ -1,6 +1,6 @@
|
||||
Manifest-Version: 1.0
|
||||
Class-Path: lib/gdx.jar lib/gdx-backend-lwjgl.jar lib/gdx-backend-lwjg
|
||||
l-natives.jar lib/gdx-natives.jar lib/kotlin-stdlib.jar TerrarumSansB
|
||||
l-natives.jar lib/gdx-natives.jar lib/kotlin-stdlib.jar lib/TerrarumSansB
|
||||
itmap.jar
|
||||
Main-Class: FontTestGDXKt
|
||||
|
||||
|
||||
Binary file not shown.
@@ -428,7 +428,11 @@ class GameFontBase(
|
||||
|
||||
resetHash(charSeq, x.toFloat(), y.toFloat())
|
||||
|
||||
val linotypePixmap = Pixmap(posXbuffer.last(), H + (pixmapOffsetY * 2), Pixmap.Format.RGBA8888)
|
||||
|
||||
val _pw = posXbuffer.last()
|
||||
val _ph = H + (pixmapOffsetY * 2)
|
||||
if (_pw < 0 || _ph < 0) throw RuntimeException("Illegal linotype dimension (w: $_pw, h: $_ph)")
|
||||
val linotypePixmap = Pixmap(_pw, _ph, Pixmap.Format.RGBA8888)
|
||||
|
||||
|
||||
var index = 0
|
||||
@@ -1744,6 +1748,10 @@ print("0x{0:x}".format(ord(c)))
|
||||
private val kernGammas = intArrayOf(0x393,0x403,0x413,0x490,0x492,0x4f6,0x4fa,0x13b1,0x16a8,0x16a9,0x16aa,0x16ab,0x16b9,0x16c7,0x16da,0x16db,0x16e2,0x16ee,0x2c84,0xa4e9,0xa784).toSortedSet()
|
||||
// JĴɹɺɻͿᛇᴊᎫᏗꓕꓙꞱꭻꮧ
|
||||
private val kernJays = intArrayOf(0x4a,0x134,0x279,0x27a,0x27b,0x37f,0x16c7,0x1d0a,0x13ab,0x13d7,0xa4d5,0xa4d9,0xa7b1,0xab7b,0xaba7).toSortedSet()
|
||||
// d
|
||||
private val kernDees = intArrayOf(0x64)
|
||||
// b
|
||||
private val kernBees = intArrayOf(0x62)
|
||||
|
||||
private val kernTee = -2
|
||||
private val kernYee = -1
|
||||
|
||||
58
testtext.txt
58
testtext.txt
@@ -1,48 +1,12 @@
|
||||
EVE
|
||||
AVA
|
||||
AYA
|
||||
FAT
|
||||
LTA
|
||||
BBB
|
||||
TAT
|
||||
ATA
|
||||
LVJ
|
||||
LYJ
|
||||
LTJ
|
||||
ΓJ
|
||||
ΓΛV
|
||||
LOT
|
||||
OOO
|
||||
To
|
||||
uu
|
||||
Td
|
||||
mm
|
||||
Ye
|
||||
Yd
|
||||
|
||||
바람결에 실려온 당신의 nostalgia와 어지러이 섞인 regret의 memories
|
||||
|
||||
x86 또는 80x86은 인텔이 개발한 마이크로프로세서 계열을 부르는 말이자, 이들과 호환되는 프로세서들에서 사용한
|
||||
명령어 집합 구조들을 통칭하는 말이다. x86 아키텍처는 데스크톱 컴퓨터 시장에서 매우 널리 쓰이며, PowerPC
|
||||
같이 좀 더 근대적인 아키텍처를 사용한 프로세서들이 x86과 경쟁했으나 그다지 많은 시장 점유율을 확보하지는 못했다.
|
||||
|
||||
x86 또는 80x86이라는 이름은 여기에 속하는 초기의 프로세서들 이름이 모두 80으로 시작해서 86으로 끝났기 때문에
|
||||
붙여졌다. 여기에는 8086, 80186, 80286, 386, 486이 포함되며, 숫자로 상표를 등록할 수 없었기 때문에 그
|
||||
뒤로는 펜티엄과 같은 별도의 이름을 사용하게 되었다. 그러나 586, 686과 같은 이름은 아직까지도 (비공식적으로)
|
||||
사용되며, 전체 아키텍처를 나타내는 말에도 그 흔적이 남아 있다.
|
||||
|
||||
x86 아키텍처를 사용하는 최초의 프로세서는 1978년에 발표된 인텔 8086으로, 이전 프로세서인 인텔 8080과
|
||||
어셈블리어 단에서 호환되도록 설계되었다. 인텔 8086은 3년 후에 IBM PC의 표준 프로세서로 채택되었다. IBM PC는
|
||||
그 후로 계속 성장하여 개인용 컴퓨터 업계의 표준이 되었으며, 그에 따라 x86 아키텍처는 매우 성공적인 명령 집합
|
||||
아키텍처가 되었다. 사이릭스, 일본 전기 주식회사(NEC), IBM, 트랜스메타 등의 회사들이 x86 아키텍처를 사용하는
|
||||
프로세서를 생산했으며, 그중 AMD의 애슬론 계열 프로세서들은 펜티엄에 미치지는 못 하지만 상당한 시장 점유율을
|
||||
차지하고 있다.
|
||||
|
||||
x86 아키텍처는 가변 길이 명령을 쓰는 CISC 설계를 채용했으며, 하위 호환성에 중점을 두고 있다. x86 아키텍처는
|
||||
다른 아키텍처와 같이 워드 경계에 맞춰서 메모리를 읽는 것이 효율적이긴 하지만, 워드 경계에 걸치는 메모리도 한
|
||||
번에 접근할 수 있다. 워드들은 최하위 바이트부터 최상위 바이트까지 순서대로 (리틀 엔디안) 저장된다. 현재의
|
||||
x86 프로세서들은 명령들을 내부적으로 더 작은 단위로 쪼개서 RISC와 비슷한 내부 아키텍처에서 수행한다.
|
||||
|
||||
ㅇㅇㅅㅅㅊㅇㅇㄷ? ㅗㅜㅑ
|
||||
|
||||
씬춘 썅쑝쑈를 썅그릴라 호텔테서 연 씬찐 썅쑝 가수 쏭쌍썽씨가 쩌끼 쩌 미트 쏘씨찌 쏘쓰 쓰파게티는 깐쑈쌔우 크림
|
||||
쏘쓰 쏘씨찌 쏘쓰 쓰테이크보다 비싸다며 단식에 들어가 호텔의 빈축을 사고 있습니다
|
||||
헌 상품을 새 쌍품으로 만들애내는 쌍장사가 저기 가능 쌍짱싸가 쌔 쌍 쌍짱싸냐 헌 쌍 쌍짱싸냐고 쏘릴 질러 찌나가던
|
||||
씬씬얘씨가 쏘쓰라치게 놀랐다고 합니다
|
||||
쓰티븐 씨걸씨의 쏘울메이트로 알려진 쑸싸씀이 맨해튼에 쎈쎄이쎤을 쑾쏙을 쌑쌑이
|
||||
|
||||
왵 윁 왰 웼
|
||||
/œ̃/
|
||||
/ɛ̃/
|
||||
ẽ
|
||||
when the line ends with a diacritics, whole letter wont render
|
||||
if the line starts with a letter-with-diacritic, it will error out
|
||||
Reference in New Issue
Block a user