mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-03-15 23:46:09 +09:00
coptic
This commit is contained in:
@@ -28,7 +28,7 @@ from keming_machine import generate_kerning_pairs
|
||||
from opentype_features import generate_features, glyph_name
|
||||
import sheet_config as SC
|
||||
|
||||
FONT_VERSION = "1.15"
|
||||
FONT_VERSION = "1.16"
|
||||
|
||||
# Codepoints that get cmap entries (user-visible)
|
||||
# PUA forms used internally by GSUB get glyphs but NO cmap entries
|
||||
|
||||
@@ -79,6 +79,7 @@ SHEET_LATIN_EXTE_VARW = 45
|
||||
SHEET_LATIN_EXTF_VARW = 46
|
||||
SHEET_LATIN_EXTG_VARW = 47
|
||||
SHEET_OGHAM_VARW = 48
|
||||
SHEET_COPTIC_VARW = 49
|
||||
|
||||
SHEET_UNKNOWN = 254
|
||||
|
||||
@@ -132,6 +133,7 @@ FILE_LIST = [
|
||||
"latinExtF_variable.tga",
|
||||
"latinExtG_variable.tga",
|
||||
"ogham_variable.tga",
|
||||
"coptic_variable.tga",
|
||||
]
|
||||
|
||||
CODE_RANGE = [
|
||||
@@ -184,6 +186,7 @@ CODE_RANGE = [
|
||||
list(range(0x10780, 0x107C0)), # 46: Latin Ext F
|
||||
list(range(0x1DF00, 0x1E000)), # 47: Latin Ext G
|
||||
list(range(0x1680, 0x16A0)), # 48: Ogham
|
||||
list(range(0x2C80, 0x2D00)), # 49: Coptic
|
||||
]
|
||||
|
||||
CODE_RANGE_HANGUL_COMPAT = range(0x3130, 0x3190)
|
||||
@@ -567,5 +570,6 @@ def index_y(sheet_index, c):
|
||||
SHEET_LATIN_EXTF_VARW: lambda: (c - 0x10780) // 16,
|
||||
SHEET_LATIN_EXTG_VARW: lambda: (c - 0x1DF00) // 16,
|
||||
SHEET_OGHAM_VARW: lambda: (c - 0x1680) // 16,
|
||||
SHEET_COPTIC_VARW: lambda: (c - 0x2C80) // 16,
|
||||
SHEET_HANGUL: lambda: 0,
|
||||
}.get(sheet_index, lambda: c // 16)()
|
||||
|
||||
BIN
demo.PNG
BIN
demo.PNG
Binary file not shown.
|
Before Width: | Height: | Size: 177 KiB After Width: | Height: | Size: 180 KiB |
@@ -26,6 +26,7 @@ How multilingual? Real multilingual!
|
||||
Под южно дърво, цъфтящо в синьо, бягаше малко пухкаво зайче
|
||||
ᎠᏍᎦᏯᎡᎦᎢᎾᎨᎢᎣᏍᏓᎤᎩᏍᏗᎥᎴᏓᎯᎲᎢᏔᎵᏕᎦᏟᏗᏖᎸᎳᏗᏗᎧᎵᎢᏘᎴᎩ ᏙᏱᏗᏜᏫᏗᏣᏚᎦᏫᏛᏄᏓᎦᏝᏃᎠᎾᏗᎭᏞᎦᎯᎦᏘᏓᏠᎨᏏᏕᏡᎬᏢᏓᏥᏩᏝᎡᎢᎪᎢ ᎠᎦᏂᏗᎮᎢᎫᎩᎬᏩᎴᎢᎠᏆᏅᏛᎫᏊᎾᎥᎠᏁᏙᎲᏐᏈᎵᎤᎩᎸᏓᏭᎷᏤᎢᏏᏉᏯᏌᏊ ᎤᏂᏋᎢᏡᎬᎢᎰᏩᎬᏤᎵᏍᏗᏱᎩᎱᎱᎤᎩᎴᎢᏦᎢᎠᏂᏧᏣᏨᎦᏥᎪᎥᏌᏊᎤᎶᏒᎢᎢᏡᎬᎢ ᎹᎦᎺᎵᏥᎻᎼᏏᎽᏗᏩᏂᎦᏘᎾᎿᎠᏁᎬᎢᏅᎩᎾᏂᎡᎢᏌᎶᎵᏎᎷᎠᏑᏍᏗᏪᎩ ᎠᎴ ᏬᏗᏲᏭᎾᏓᏍᏓᏴᏁᎢᎤᎦᏅᏮᏰᎵᏳᏂᎨᎢ
|
||||
Ѳеѡфа́нъ и҆ Алеѯі́й, ѕѣлѡ̀ возлюби́вше ѱалти́рь, воспѣ́ша при свѣ́тѣ ѕвѣ́здъ, помазꙋ́юще сщ҃е́нное мѵ́ро; серафими мн̑оꙮ҆читїи̑, ꙗ҆́кѡ ѻ҆́гнь, ѡ҆крꙋжа́хꙋ прⷭ҇то́лъ Бж҃їй, и҆ всѧ̀ землѧ̀ и҆спо́лнисѧ свѣ́та, ꙗ҆́кѡ ѕмі́й попра́нъ є҆́сть
|
||||
ⲡⲓⲝⲉⲛⲟⲥ ⲅⲁⲣ ⲁϥϫⲉⲙ ⲟⲩⲫⲱⲥ ϧⲉⲛ ⲡⲓⲍⲏⲗⲟⲥ ⲛⲧⲉ ϯⲯⲩⲭⲏ· ⲁϥϣⲱⲡⲓ ⲇⲉ ⲕⲁⲧⲁ ⲡⲓⲑⲉⲗⲏⲙⲁ· ⲁϥϭⲓ ⲛϩⲱⲃ ⲛⲓⲃⲉⲛ ⲟⲩⲟϩ ⲁϥϯⲙⲟⲧ
|
||||
Příliš žluťoučký kůň úpěl ďábelské ódy
|
||||
Quizdeltagerne spiste jordbær med fløde, mens cirkusklovnen Walther spillede på xylofon
|
||||
PACK MY BOX WITH FIVE DOZEN LIQUOR JUGS
|
||||
@@ -125,6 +126,7 @@ How multilingual? Real multilingual!
|
||||
⁃ CJK Unified Ideographs Extension A¹²·¹
|
||||
⁃ Combining Diacritical Marks
|
||||
⁃ Control Pictures
|
||||
⁃ Coptic
|
||||
⁃ Currency Symbols
|
||||
⁃ Cyrillic
|
||||
⁃ Cyrillic Supplement
|
||||
|
||||
BIN
src/assets/coptic_variable.tga
LFS
Normal file
BIN
src/assets/coptic_variable.tga
LFS
Normal file
Binary file not shown.
Binary file not shown.
BIN
src/assets/cyrilic_variable.tga
LFS
BIN
src/assets/cyrilic_variable.tga
LFS
Binary file not shown.
Binary file not shown.
BIN
src/assets/greek_variable.tga
LFS
BIN
src/assets/greek_variable.tga
LFS
Binary file not shown.
@@ -882,6 +882,7 @@ class TerrarumSansBitmap(
|
||||
SHEET_LATIN_EXTF_VARW -> latinExtFIndexY(ch)
|
||||
SHEET_LATIN_EXTG_VARW -> latinExtGIndexY(ch)
|
||||
SHEET_OGHAM_VARW -> oghamIndexY(ch)
|
||||
SHEET_COPTIC_VARW -> copticIndexY(ch)
|
||||
else -> ch / 16
|
||||
}
|
||||
|
||||
@@ -2614,6 +2615,7 @@ class TerrarumSansBitmap(
|
||||
internal const val SHEET_LATIN_EXTF_VARW = 46
|
||||
internal const val SHEET_LATIN_EXTG_VARW = 47
|
||||
internal const val SHEET_OGHAM_VARW = 48
|
||||
internal const val SHEET_COPTIC_VARW = 49
|
||||
|
||||
internal const val SHEET_UNKNOWN = 254
|
||||
|
||||
@@ -2685,6 +2687,7 @@ class TerrarumSansBitmap(
|
||||
"latinExtF_variable.tga",
|
||||
"latinExtG_variable.tga",
|
||||
"ogham_variable.tga",
|
||||
"coptic_variable.tga",
|
||||
)
|
||||
internal val codeRange = arrayOf( // MUST BE MATCHING WITH SHEET INDICES!!
|
||||
0..0xFF, // SHEET_ASCII_VARW
|
||||
@@ -2736,6 +2739,7 @@ class TerrarumSansBitmap(
|
||||
0x10780..0x107BF, // SHEET_LATIN_EXTF_VARW
|
||||
0x1DF00..0x1DFFF, // SHEET_LATIN_EXTG_VARW
|
||||
0x1680..0x169F, // SHEET_OGHAM_VARW
|
||||
0x2C80..0x2CFF, // SHEET_COPTIC_VARW
|
||||
)
|
||||
private val codeRangeHangulCompat = 0x3130..0x318F
|
||||
|
||||
@@ -3095,6 +3099,7 @@ class TerrarumSansBitmap(
|
||||
private fun latinExtFIndexY(c: CodePoint) = (c - 0x10780) / 16
|
||||
private fun latinExtGIndexY(c: CodePoint) = (c - 0x1DF00) / 16
|
||||
private fun oghamIndexY(c: CodePoint) = (c - 0x1680) / 16
|
||||
private fun copticIndexY(c: CodePoint) = (c - 0x2C80) / 16
|
||||
|
||||
val charsetOverrideDefault = Character.toChars(CHARSET_OVERRIDE_DEFAULT).toSurrogatedString()
|
||||
val charsetOverrideBulgarian = Character.toChars(CHARSET_OVERRIDE_BG_BG).toSurrogatedString()
|
||||
|
||||
BIN
work_files/coptic_variable.kra
LFS
Normal file
BIN
work_files/coptic_variable.kra
LFS
Normal file
Binary file not shown.
Binary file not shown.
BIN
work_files/cyrilic_variable.psd
LFS
BIN
work_files/cyrilic_variable.psd
LFS
Binary file not shown.
Binary file not shown.
BIN
work_files/greek_variable.psd
LFS
BIN
work_files/greek_variable.psd
LFS
Binary file not shown.
Reference in New Issue
Block a user