From 5cf8a085e3555ac92a9ca22a435a53c292ce237b Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Sun, 31 Dec 2023 10:27:42 +0100 Subject: [PATCH] Document that you need to install additional fonts for asian scripts --- crates/egui/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/egui/src/lib.rs b/crates/egui/src/lib.rs index 37786005..b61c313c 100644 --- a/crates/egui/src/lib.rs +++ b/crates/egui/src/lib.rs @@ -333,6 +333,10 @@ //! }); // the temporary settings are reverted here //! # }); //! ``` +//! +//! ## Installing additional fonts +//! The default egui fonts only support latin and cryllic characters, and some emojis. +//! To use egui with e.g. asian characters you need to install your own font (`.ttf` or `.otf`) using [`Context::set_fonts`]. #![allow(clippy::float_cmp)] #![allow(clippy::manual_range_contains)]