Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Context::add_font #5228

Merged
merged 14 commits into from
Oct 23, 2024
Prev Previous commit
Next Next commit
wasm32 clippy fix
frederik-uni committed Oct 7, 2024
commit 6a7ce913bb2dd99ca5c4b1fc63ba368e2f53afab
9 changes: 2 additions & 7 deletions crates/epaint/src/text/fonts.rs
Original file line number Diff line number Diff line change
@@ -272,13 +272,8 @@ pub struct FontInsert {
}

impl FontInsert {
pub fn new(
name: impl ToString,
data: FontData,
family: FontFamily,
primary_font: bool,
) -> Self {
FontInsert {
pub fn new(name: &str, data: FontData, family: FontFamily, primary_font: bool) -> Self {
Self {
name: name.to_string(),
data,
family,