Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

bump egui and eframe to 0.29 and self to 0.1.4 #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "egui_nerdfonts"
description = "Nerdfonts icons for egui"
version = "0.1.3"
version = "0.1.5"
edition = "2021"
license = "MIT OR Apache-2.0"
homepage = "https://github.com/bernsteining/egui_nerdfonts"
Expand All @@ -10,10 +10,10 @@ keywords = ["egui", "nerdfonts", "icons", "symbols", "font"]
categories = ["gui"]

[dependencies]
egui = { version = "0.27.2", default-features = false }
egui = { version = "0.31", default-features = false }

[dev-dependencies]
eframe = "0.27.2"
eframe = "0.31"

[[example]]
name = "rust_logo"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Bundles [Nerd Fonts icons](https://www.nerdfonts.com/cheat-sheet) for [egui](htt

Add the crate as a dependency in Cargo.toml:
```toml
egui_nerdfonts = "0.1.3"
egui_nerdfonts = "0.1.4"
```

or type `cargo add egui_nerdfonts`, in your project.
Expand Down Expand Up @@ -65,4 +65,4 @@ with TTFont(
symbol_name = char[1].upper().replace('-', '_').replace(' ', '_').replace('#', '_').replace('!', '')
code = r"\u" + "{" + f"{char[0]:X}" + "}"
print(f"pub const {symbol_name}: &str = \"{code}\";")
```
```
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pub use variants::*;
pub fn add_to_fonts(fonts: &mut egui::FontDefinitions, variant: Variant) {
fonts
.font_data
.insert("nerdfonts".into(), variant.font_data());
.insert("nerdfonts".into(), variant.font_data().into());

if let Some(font_keys) = fonts.families.get_mut(&egui::FontFamily::Proportional) {
font_keys.push("nerdfonts".into());
Expand Down