amethyst / amethyst/bracket-lib

Support ttf fonts

Abierto
#167 3 comentarios 9 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Rust
Estrellas
1.7k
Forks
126
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

GNU Unifont has a full-featured TrueFont http://unifoundry.com/unifont/index.html

But right now bracket-lib cannot support ttf fonts.

For example, in `unicode.rs`:

```rust
bracket_terminal::embedded_resource!(TILE_FONT3, "../resources/unifont-13.0.03.ttf");

fn main() -> BError {
bracket_terminal::link_resource!(TILE_FONT3, "resources/unifont-13.0.03.ttf");

let context = BTermBuilder::new()
.with_dimensions(80, 50)
.with_tile_dimensions(16, 16)
.with_title("Hello Minimal Bracket World")
.with_font("unifont-13.0.03.ttf", 16, 16)
.with_simple_console(80, 50, "unifont-13.0.03.ttf")
.build()?;

let gs: State = State {};

main_loop(context, gs)
}

```

Will throw errors.

BTW, if I use the BMP version: http://unifoundry.com/pub/unifont/unifont-13.0.03/unifont-13.0.03.bmp

The loading time will be incredibly slow (more than 1min I think)

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.