emilk/egui

Automatically load system fonts when needed

开放

#5,233 创建于 2024年10月8日

 (2 条评论) (10 个反应) (0 位负责人)Rust (2,104 个派生)batch import
eframeeguihelp wantedtext

仓库指标

星标
 (30,094 个星标)
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:

贡献者指南