Skip to content
This repository was archived by the owner on Oct 24, 2020. It is now read-only.
This repository was archived by the owner on Oct 24, 2020. It is now read-only.

Emojis map to the wrong glyphs #27

@tobiasvl

Description

@tobiasvl

In the PICO-8 editor, you can insert glyphs directly by "writing" uppercase letters. For example, pressing shifth inserts the heart glyph. These glyphs are actually emojis – the heart glyph is represented in the .p8 file as ♥.

Note that you can also insert glyphs in strings with an escape sequence, and that seems to work fine. For example, you can insert the heart glyph with the escape sequence \135, which renders correctly in picolove.

However, when loading a PICO-8 cartridge file that has emojis in it, the emojis will display as the wrong glyph. For example, the heart emoji will be displayed as the \153 glyph, which you normally get with shiftz or ▥.

As far as I can see none of the emojis map to their correct glyph, and some of them map to multiple glyphs, probably because of multi-byte emojis.

Quick and simple test:

picolove glyphs

First column is just the escape sequence, second column is the key that (together with shift) inserts the glyph in the editor, third column is the result of the escape sequence and fourth column is the result of the emoji.

Compare to PICO-8's output:

pico-8 glyphs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions