How do I change the size of the macro println?

I am making my own version of neofetch as my first Rust project. I know you can use \x1B to bolden text that is printed, though I want the text to actually appear bigger, not just thicker. Are there any libraries that could help with this, or even better, are there any built-in features that could help me complete this task inside Rust?

I use something like:

.bigger-text {
  font-size: larger; 
}

and I use a special crate to use that.

Thank you. Found a crate that worked fine for me.

Out of curiosity, which crate was it?
(as a lurker who reads much more often than I post)

2 Likes

When I looked I found this one: tui_big_text - Rust

2 Likes

The terminal is not intended for variable font size, there will never be a good way to get variable font size in the terminal and that's a good thing.