emilk/egui

Automatically load system fonts when needed

開放

#5,233 建立於 2024年10月8日

 (2 則留言) (10 個反應) (0 位負責人)Rust (2,103 個分叉)batch import
eframeeguihelp wantedtext

倉庫指標

星標
 (30,130 顆星)
PR 合併指標
 (平均合併 17天 17小時) (30 天內合併 41 個 PR)

描述

Currently egui only supports glyphs available in fonts that has been explicitly installed with ctx.set_fonts.

It would be great if there was a way for egui to tell it's integration "The user wanted to show a Chinese glyph, but no current font has support for that" and then have eframe respond by automatically finding such a font on the system, e.g. by downloading it.

Related:

貢獻者指南