| Crates.io | to_fraktur |
| lib.rs | to_fraktur |
| version | 0.1.2 |
| created_at | 2025-11-18 07:45:32.806998+00 |
| updated_at | 2025-11-18 07:52:26.727089+00 |
| description | Function that converts any string to fraktur font |
| homepage | |
| repository | https://github.com/gold-silver-copper/to_fraktur |
| max_upload_size | |
| id | 1938019 |
| size | 6,595 |
A minimal Rust library for converting ASCII text to Fraktur (Gothic) Unicode characters.
Add this to your Cargo.toml:
[dependencies]
to_fraktur = "0.1.2"
use to_fraktur::{to_fraktur, to_fraktur_bold};
fn main() {
let text = "Hello World!";
// Regular Fraktur
println!("{}", to_fraktur(text));
// Output: ℌ𝔢𝔩𝔩𝔬 𝔚𝔬𝔯𝔩𝔡!
// Bold Fraktur
println!("{}", to_fraktur_bold(text));
// Output: 𝕳𝖊𝖑𝖑𝖔 𝖂𝖔𝖗𝖑𝖉!
}
to_fraktur(text: &str) -> StringConverts ASCII alphabetic characters to regular Fraktur Unicode characters.
to_fraktur_bold(text: &str) -> StringConverts ASCII alphabetic characters to bold Fraktur Unicode characters.
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
𝔄 𝔅 ℭ 𝔇 𝔈 𝔉 𝔊 ℌ ℑ 𝔍 𝔎 𝔏 𝔐 𝔑 𝔒 𝔓 𝔔 ℜ 𝔖 𝔗 𝔘 𝔙 𝔚 𝔛 𝔜 ℨ
a b c d e f g h i j k l m n o p q r s t u v w x y z
𝔞 𝔟 𝔠 𝔡 𝔢 𝔣 𝔤 𝔥 𝔦 𝔧 𝔨 𝔩 𝔪 𝔫 𝔬 𝔭 𝔮 𝔯 𝔰 𝔱 𝔲 𝔳 𝔴 𝔵 𝔶 𝔷
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
𝕬 𝕭 𝕮 𝕯 𝕰 𝕱 𝕲 𝕳 𝕴 𝕵 𝕶 𝕷 𝕸 𝕹 𝕺 𝕻 𝕼 𝕽 𝕾 𝕿 𝖀 𝖁 𝖂 𝖃 𝖄 𝖅
a b c d e f g h i j k l m n o p q r s t u v w x y z
𝖆 𝖇 𝖈 𝖉 𝖊 𝖋 𝖌 𝖍 𝖎 𝖏 𝖐 𝖑 𝖒 𝖓 𝖔 𝖕 𝖖 𝖗 𝖘 𝖙 𝖚 𝖛 𝖜 𝖝 𝖞 𝖟
Run the test suite:
cargo test
This project is available under MIT or APACHE license
Contributions are welcome! Please feel free to submit a Pull Request.