Skip to content

jellytech3438/vk-font-render

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vk-font-render

This project is me learning vulkan-rs which using rust as language to use vulkan api.

The process

Below shows the process of constructing a alphabet. I first construct the world with rusttype crate which consume .ttf file type as input. After some scaling and sampleing, the cache size of 1000x1000px will be allocated and copy the buffer into it.

image

Run

$ cargo install
$ cargo run [--release]

Adjust fonts

Currently, there's no CLI or other way to esay modify the text size, color, position. You need to modify fn queue_text() directly.

About

font rendering in vulkan-rs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors