| Crates.io | egui_zhcn_fonts |
| lib.rs | egui_zhcn_fonts |
| version | 0.1.1 |
| created_at | 2025-02-24 06:42:55.082461+00 |
| updated_at | 2025-02-24 06:48:29.4275+00 |
| description | load system zhcn fonts automatically for egui |
| homepage | https://github.com/AllenDang/egui_zhcn_fonts |
| repository | https://github.com/AllenDang/egui_zhcn_fonts |
| max_upload_size | |
| id | 1567051 |
| size | 24,390 |
Loads simplified chinese fonts to egui, currently works for windows/macos/linux.
Add to your Cargo.toml:
[dependencies]
egui_zhcn_fonts = "0.1"
Basic usage:
struct App {
data:String
}
impl App {
pub fn new(cc: &eframe::CreationContext<'_>) -> Self {
// Add this to your app's initialize
egui_zhcn_fonts::add_sys_ui_fonts(&cc.egui_ctx);
Self {
data: "你好啊"
}
}
}
| egui_zhcn_fonts | Egui |
|---|---|
| 0.1 | 0.31 |
Contributions are welcome! Please open an issue or PR for:
MIT/Apache