amethyst / amethyst/bracket-lib

Questions about bracket-term unicode mode.

Open
#219 1 comment 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
Rust
Stars
1.7k
Forks
126
PR merge metrics
No merged PRs in 30d

Description

Hello.
I am interested in RLTK recently.
As a Korean, I want to make the Korean language support.
So I tried to print Hangul(Korean characters) to the console.
But 'main' has panicked.
I managed to find that the [PNG font file](https://github.com/amethyst/bracket-lib/blob/57aac00ee07067f9f748d0273bce95e4638f0320/bracket-terminal/resources/unicode_16x16.png) caused the panic.
There is no combined hangul at all.

So, here's questions:
1. How can I append this font file?
I have some pixelated Hangul fonts that fit 16x16 size, but I do not know how this PNG file was made.
Let me know how you build this image, please?
2. It panicked at [hal\gl_common\backing\simple_console_backing.rs:119:21](https://github.com/amethyst/bracket-lib/blob/57aac00ee07067f9f748d0273bce95e4638f0320/bracket-terminal/src/hal/gl_common/backing/simple_console_backing.rs#L119)
It panicked due to `as`, and the message was not much helpful.
(`thread 'main' panicked at 'attempt to subtract with overflow'`)
How about using `TryFrom` or `TryInto` with `expect`?

Thank you.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.