1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

Support multiple fonts

This commit is contained in:
Emil Ernerfeldt
2019-01-13 00:55:56 +01:00
parent 1b8a45a514
commit ca9333ec3e
13 changed files with 140 additions and 70 deletions

View File

@@ -232,15 +232,14 @@ fn translate_cmd(out_commands: &mut Vec<PaintCmd>, style: &Style, cmd: GuiCmd) {
}
GuiCmd::Text {
pos,
style: text_style,
text_style,
text,
x_offsets,
} => {
let color = match text_style {
TextStyle::Label => style.text_color(),
};
let color = style.text_color();
out_commands.push(PaintCmd::Text {
color,
text_style,
pos,
text,
x_offsets,