Bring back cpkio's glyphs; v.1.11.1

This commit is contained in:
Slavfox 2021-06-30 14:35:57 +02:00
parent ac17ae931c
commit 359afa3cc4
8 changed files with 669 additions and 211 deletions

View file

@ -5,9 +5,71 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog], and this project adheres to
[Semantic Versioning].
## [Unreleased]
## [1.11.1]
Nothing!
### Added
- ▖ (U+2596 QUADRANT LOWER LEFT)
- ▗ (U+2597 QUADRANT LOWER RIGHT)
- ▘ (U+2598 QUADRANT UPPER LEFT)
- ▙ (U+2599 QUADRANT UPPER LEFT AND LOWER LEFT AND LOWER RIGHT)
- ▚ (U+259A QUADRANT UPPER LEFT AND LOWER RIGHT)
- ▛ (U+259B QUADRANT UPPER LEFT AND UPPER RIGHT AND LOWER LEFT)
- ▜ (U+259C QUADRANT UPPER LEFT AND UPPER RIGHT AND LOWER RIGHT)
- ▝ (U+259D QUADRANT UPPER RIGHT)
- ▞ (U+259E QUADRANT UPPER RIGHT AND LOWER LEFT)
- ▟ (U+259F QUADRANT UPPER RIGHT AND LOWER LEFT AND LOWER RIGHT)
- ☻ (U+263B BLACK SMILING FACE)
-  (U+E725)
-  (U+E726)
-  (U+E727)
### Changed
- ɥ (U+0265 LATIN SMALL LETTER TURNED H)
- ❭ (U+276D MEDIUM RIGHT-POINTING ANGLE BRACKET ORNAMENT)
-  (U+E728)
-  (U+E729)
## [1.11.0]
### Added
- ⁱ (U+2071 SUPERSCRIPT LATIN SMALL LETTER I)
- ⁺ (U+207A SUPERSCRIPT PLUS SIGN)
- ⁻ (U+207B SUPERSCRIPT MINUS)
- ⁼ (U+207C SUPERSCRIPT EQUALS SIGN)
- ⁽ (U+207D SUPERSCRIPT LEFT PARENTHESIS)
- ⁾ (U+207E SUPERSCRIPT RIGHT PARENTHESIS)
- ⁿ (U+207F SUPERSCRIPT LATIN SMALL LETTER N)
- ₀ (U+2080 SUBSCRIPT ZERO)
- ₂ (U+2082 SUBSCRIPT TWO)
- ₃ (U+2083 SUBSCRIPT THREE)
- ₄ (U+2084 SUBSCRIPT FOUR)
- ₅ (U+2085 SUBSCRIPT FIVE)
- ₆ (U+2086 SUBSCRIPT SIX)
- ₇ (U+2087 SUBSCRIPT SEVEN)
- ₈ (U+2088 SUBSCRIPT EIGHT)
- ₉ (U+2089 SUBSCRIPT NINE)
- ₊ (U+208A SUBSCRIPT PLUS SIGN)
- ₋ (U+208B SUBSCRIPT MINUS)
- ₌ (U+208C SUBSCRIPT EQUALS SIGN)
- ₍ (U+208D SUBSCRIPT LEFT PARENTHESIS)
- ₎ (U+208E SUBSCRIPT RIGHT PARENTHESIS)
- ∑ (U+2211 N-ARY SUMMATION)
- (U+2212 MINUS SIGN)
- ∓ (U+2213 MINUS-OR-PLUS SIGN)
- ⏏ (U+23CF EJECT SYMBOL)
- ␍ (U+240D SYMBOL FOR CARRIAGE RETURN)
- ⚐ (U+2690 WHITE FLAG)
- ⚑ (U+2691 BLACK FLAG)
- ✱ (U+2731 HEAVY ASTERISK)
- ❬ (U+276C MEDIUM LEFT-POINTING ANGLE BRACKET ORNAMENT)
- ❭ (U+276D MEDIUM RIGHT-POINTING ANGLE BRACKET ORNAMENT)
### Changed
- √ (U+221A SQUARE ROOT)
## [1.10.0]
@ -755,7 +817,9 @@ Still broken on Windows.
[Keep a Changelog]: https://keepachangelog.com/en/1.0.0/
[Semantic Versioning]: https://semver.org/spec/v2.0.0.html
[unreleased]: https://github.com/slavfox/Cozette/compare/v.1.8.3...HEAD
[unreleased]: https://github.com/slavfox/Cozette/compare/v.1.11.1...HEAD
[1.11.1]: https://github.com/slavfox/Cozette/compare/v.1.11.0...v.1.11.1
[1.11.0]: https://github.com/slavfox/Cozette/compare/v.1.10.0...v.1.11.0
[1.10.0]: https://github.com/slavfox/Cozette/compare/v.1.9.3...v.1.10.0
[1.9.3]: https://github.com/slavfox/Cozette/compare/v.1.9.2...v.1.9.3
[1.9.2]: https://github.com/slavfox/Cozette/compare/v.1.9.0...v.1.9.2

File diff suppressed because it is too large Load diff

View file

@ -198,7 +198,7 @@ Cozette is licensed [MIT] 💜
Massive thanks to [ym1234] for helping me figure out how to make the font tables behave nicely.
Additional thanks to [autumn] for contributing some characters!
Additional thanks to [autumn] and [cpkio] for contributing characters!
[Dina]: https://www.dcmembers.com/jibsen/download/61/
@ -227,3 +227,4 @@ Additional thanks to [autumn] for contributing some characters!
[MIT]: ./LICENSE
[ym1234]: https://github.com/ym1234
[autumn]: https://github.com/auctumnus
[cpkio]: https://github.com/cpkio

View file

@ -44,25 +44,15 @@ class Generate:
def save_images(otbpath):
with tempfile.TemporaryDirectory() as tmpdirname:
print(crayons.yellow("Making tmp fontdir"))
tmpdirpath = Path(tmpdirname)
copy(otbpath, tmpdirname)
subprocess.run(["mkfontdir", tmpdirname])
subprocess.run(["xset", "+fp", tmpdirname])
subprocess.run(["xset", "fp", "rehash"])
print(crayons.yellow("Saving character map"))
save_charlist(FONTNAME, SFDPATH, REPO_ROOT / "img")
print(crayons.yellow("Saving character map"))
save_charlist(FONTNAME, SFDPATH, REPO_ROOT / "img")
print(crayons.yellow("Saving sample image"))
save_sample(
FONTNAME,
read_sample(REPO_ROOT / "img" / "sample.txt"),
REPO_ROOT / "img" / "sample.png",
)
subprocess.run(["xset", "-fp", tmpdirname])
subprocess.run(["xset", "fp", "rehash"])
print(crayons.yellow("Saving sample image"))
save_sample(
FONTNAME,
read_sample(REPO_ROOT / "img" / "sample.txt"),
REPO_ROOT / "img" / "sample.png",
)
add_margins(REPO_ROOT / "img" / "sample.png")
@ -158,26 +148,24 @@ if __name__ == "__main__":
f"supported by Cozette."
)
)
elif args.action in ("images", "fonts"):
if args.action == "images":
print(crayons.blue("Saving sample images..."))
save_images(BUILD_DIR / "cozette.otb")
print(crayons.green("Done!", bold=True))
elif args.action == "fonts":
rmtree(BUILD_DIR, ignore_errors=True)
BUILD_DIR.mkdir(exist_ok=True)
os.chdir(BUILD_DIR)
print(crayons.blue("Building bitmap formats..."))
bdfpath = gen_bitmap_formats()
print(crayons.green("Done!", bold=True))
print(crayons.blue("Generating TTF..."))
ttfbuilder = TTFBuilder.from_bdf_path(bdfpath)
ttfbuilder.build("cozette-tmp.ttf")
print(crayons.green("Done!", bold=True))
print(crayons.blue("Fixing TTF..."))
fix_ttf(Path("cozette-tmp.ttf"))
print(crayons.green("Done!", bold=True))
if args.action == "images":
print(crayons.blue("Saving sample images..."))
save_images(BUILD_DIR / "cozette.otb")
print(crayons.green("Done!", bold=True))
else:
print(crayons.blue("Generating TTF..."))
ttfbuilder = TTFBuilder.from_bdf_path(bdfpath)
ttfbuilder.build("cozette-tmp.ttf")
print(crayons.green("Done!", bold=True))
print(crayons.blue("Fixing TTF..."))
fix_ttf(Path("cozette-tmp.ttf"))
print(crayons.green("Done!", bold=True))
elif args.action == "changelog":
get_changelog()
else:

View file

@ -88,7 +88,7 @@ def save_sample(
fp = f.name
cmd = quote(
f"tput civis &&"
f"cat {fp} && sleep 0.1 && "
f"cat {fp} && sleep 1 && "
f"import -window $WINDOWID {output_path}"
)
subprocess.run(
@ -190,8 +190,8 @@ def stitch_charmap(files: List[Path], target: Path):
for im in images:
new_im.paste(im, (0, y))
y += im.height
# for p in files:
# p.unlink()
for p in files:
p.unlink()
new_im.save(target)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

View file

@ -32,7 +32,7 @@ U+0026_│ɠ ɡ ɢ ɣ ɤ ɥ ɦ ɧ ɨ ɩ ɪ ɫ ɬ ɭ ɮ ɯ
U+0027_│ɰ ɱ ɲ ɳ ɴ ɵ ɶ ɷ ɸ ɹ ɺ ɻ ɼ ɽ ɾ ɿ
U+0028_│ʀ ʁ ʂ ʃ ʄ ʅ ʆ ʇ ʈ ʉ ʊ ʋ ʌ ʍ ʎ ʏ
U+0029_│ʐ ʑ ʒ ʓ ʔ ʕ ʖ ʗ ʘ ʙ ʚ ʛ ʜ ʝ ʞ ʟ
U+002A_│ʠ ʡ ʢ ʮ
U+002A_│ʠ ʡ ʢ
U+002C_│ ˆ
U+002D_│ ˜
U+0038_│ Ά Έ Ή Ί Ό Ύ Ώ
@ -66,8 +66,8 @@ U+01E9_│ ẞ
U+0201_│ — ― ‖ ‗ “ ” „ ‟
U+0202_│† ‡ • ‣ ‥ … ‧
U+0203_│‰ ″ ‴ ‶ ‷ ‸
U+0207_│⁰ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹
U+0208_│
U+0207_│⁰ ⁱ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹ ⁺ ⁻ ⁼ ⁽ ⁾ ⁿ
U+0208_│₀ ₁ ₂ ₃ ₄ ₅ ₆ ₇ ₈ ₉ ₊ ₋ ₌ ₍ ₎
U+020A_│ €
U+020B_│ ₽
U+0211_│ №
@ -78,7 +78,7 @@ U+021B_│↰ ↱ ↲ ↳ ↴ ↵
U+021D_│⇐ ⇑ ⇒ ⇓ ⇔ ⇕
U+021E_│⇠ ⇡ ⇢ ⇣
U+0220_│∀ ∃ ∄ ∅ ∆ ∇ ∈ ∉ ∊ ∋ ∌ ∍ ∎ ∏
U+0221_│∐ ∘ ∙ √ ∞
U+0221_│∐ ∘ ∙ √ ∞
U+0222_│ ∥ ∦
U+0226_│≠ ≡ ≤ ≥
U+0229_│ ⊝ ⊞ ⊟
@ -86,9 +86,10 @@ U+0230_│ ⌂
U+0231_│ ⌘
U+0235_│ ⍟
U+0238_│ ⎇ ⎈
U+023C_│ ⏎
U+023C_│ ⏎ ⏏
U+023D_│⏐
U+023F_│ ⏴ ⏵ ⏶ ⏷ ⏸ ⏹ ⏺ ⏻ ⏼
U+0240_│ ␊
U+0240_│ ␊
U+0242_│ ␤
U+0250_│─ ━ │ ┃ ┄ ┅ ┆ ┇ ┈ ┉ ┊ ┋ ┌ ┍ ┎ ┏
U+0251_│┐ ┑ ┒ ┓ └ ┕ ┖ ┗ ┘ ┙ ┚ ┛ ├ ┝ ┞ ┟
@ -99,22 +100,22 @@ U+0255_│═ ║ ╒ ╓ ╔ ╕ ╖ ╗ ╘ ╙ ╚ ╛ ╜ ╝ ╞ ╟
U+0256_│╠ ╡ ╢ ╣ ╤ ╥ ╦ ╧ ╨ ╩ ╪ ╫ ╬ ╭ ╮ ╯
U+0257_│╰ ╴ ╵ ╶ ╷ ╸ ╹ ╺ ╻ ╼ ╽ ╾ ╿
U+0258_│▀ ▁ ▂ ▃ ▄ ▅ ▆ ▇ █ ▉ ▊ ▋ ▌ ▍ ▎ ▏
U+0259_│▐ ░ ▒ ▓
U+0259_│▐ ░ ▒ ▓ ▖ ▗ ▘ ▙ ▚ ▛ ▜ ▝ ▞ ▟
U+025A_│■ □
U+025B_│ ▲ ▶ ▼
U+025C_│◀ ○ ●
U+0260_│ ☁ ☃
U+0261_│☐ ☑ ☒ ☕
U+0263_│☰ ☱ ☲ ☳ ☴ ☵ ☶ ☷ ☸ ☺
U+0263_│☰ ☱ ☲ ☳ ☴ ☵ ☶ ☷ ☸ ☺
U+0266_│♠ ♡ ♢ ♣ ♤ ♥ ♦ ♧ ♩ ♪ ♫ ♬ ♭ ♮ ♯
U+0269_│
U+0269_│⚐ ⚑
U+026A_│⚠ ⚡
U+026B_│ ⚸
U+0271_│ ✓ ✔ ✕ ✖ ✗ ✘ ✙ ✚ ✛ ✜
U+0272_│ ✦ ✭ ✮
U+0273_│
U+0273_│
U+0274_│ ❎
U+0276_│
U+0276_│ ❬ ❭
U+0279_│ ➜
U+027E_│ ⟨ ⟩ ⟪ ⟫
U+0280_│ ⠁ ⠂ ⠃ ⠄ ⠅ ⠆ ⠇ ⠈ ⠉ ⠊ ⠋ ⠌ ⠍ ⠎ ⠏
@ -157,7 +158,7 @@ U+0E64_│ 
U+0E68_│ 
U+0E70_│      
U+0E71_│    
U+0E72_│   
U+0E72_│      
U+0E73_│         
U+0E74_│      
U+0E75_│     