amethyst / amethyst/bracket-lib

Support ttf fonts

未關閉
#167 3 則留言 9 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Rust
星號
1.7k
分支
126
PR 合併指標
30 天內沒有已合併 PR

描述

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)

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。