Skip to content

Changing text styles may cause an error #41

Description

@DamienPup

Attempting to change the change the egui text styles to anything that isn't the default, such as this sample from eguis docs:

style.text_styles = [
            (Heading, FontId::new(30.0, Proportional)),
            (Name("Heading2".into()), FontId::new(25.0, Proportional)),
            (Name("Context".into()), FontId::new(23.0, Proportional)),
            (Body, FontId::new(18.0, Proportional)),
            (Monospace, FontId::new(14.0, Proportional)),
            (Button, FontId::new(14.0, Proportional)),
            (Small, FontId::new(10.0, Proportional)),
        ].into();

Or even a simpler edit like this:

style.text_styles.insert(egui::TextStyle::Heading, egui::FontId::proportional(16.0)); // reduce size of headers

May cause Error: Non-zero offset texture updates are not implemented yet to be printed to the console and the text to fail to display on screen. Sometimes it's works, sometimes it doesn't. I can't really tell what will and won't work, except for knowing that the defaults always work (regardless of which style are applied to)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions