Log In  

Cart #rusfont-0 | 2021-02-14 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
10

This cartridge uses the PICO-8 v0.2.2's custom font functionality to provide an additional font with Russian letters (with the exception of Ё).

The characters are mapped similarly to the KOI8-R encoding, so that similar Latin characters are mapped to similar Russian ones. For example, "РУССКИЙ ТЕКСТ" (Russian text) is encoded as "RUSSKIJ TEKST".

To use the font, just copy the "setfont" function into your program, call it at the start of the program, and use the commands to switch to the custom font and back whenever you need to print Russian characters.

For example, this line will output "привет, мир! pico-8 пишет по-русски!" ("hello world! pico-8 is writing in russian!")

print("\014priwet, mir! \015pico-8 \014pi{et \npo-russki!")

P#87630 2021-02-14 14:18

nice!

P#94547 2021-07-07 09:24
1

Do you think you do the same thing for greek?

P#94915 2021-07-15 17:34

@Yolwoocle: It's possible, but first I'll need some advice for how to arrange Greek characters and whether they look distinguishable enough.

Right now I imagine something like this, with letters being arranged roughly according to how they're used in the "Symbol" font (which is a font used in early days by mathematicians to get Greek characters for formulas and such). Some characters, like omega, phi and psi, are kinda tough to get good-looking, but i tried to make them distinct.

[0x0]

UPD1: probably better if it matches the actual Greek keyboard layout?

[0x0]

P#94922 2021-07-15 20:23 ( Edited 2021-07-15 20:49)

@rnd Here's my attempt:

I think too that matching it to the greek layout would make it easier to type, like how you did for your font. I actually don't speak greek so I can't say too much about legibility, but they do seem to be distinct enough to distinguish properly words and letters. I based the lowercase omega off the "w" from latin. Your lowercase eta (η) and epsilon read better than mine. Although lowercase Ξ (ξ)read less well in yours. Now it's probably possible to turn this into a "Pico Symbols" font of sorts, like the one you talked about.

P#94947 2021-07-16 11:58
2

Cart #greek_font-0 | 2021-07-16 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

Here's the first version. I also replaced {, } and ^ with Greek diacritic characters, so that they can be used with the "decoration characters" feature that PICO-8 has.

This cartridge has two different lowercase versions: one's a small-caps version largely based on your design, and one's a proper lowercase.

P#94948 2021-07-16 13:18
1

Modified version with some changes and 100 times less tokens

Cart #rufont-0 | 2024-02-11 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

P#141392 2024-02-11 02:23

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-29 08:59:31 | 0.039s | Q:31