pub fn new(style: Style, font_definitions: FontDefinitions) -> Self {
        // TODO: Determine if there is a better way to exclude the defaults.
        let mut font_data = BTreeMap::new();
        for (name, data) in font_definitions.font_data.iter() {
            if !DEFAULT_FONTS.contains(&name.as_str()) {
                font_data.insert(name.clone(), base64::encode(data));
            }
        }
        Self {
            version: CURRENT_VERSION,
            style,
            font_definitions,
            font_data,
        }
    }
/// Create a new style from the required information.
/// `style` the egui style information
/// `font_definitions` the current font definitions.
Create a new style from the required information.
`style` the egui style information
`font_definitions` the current font definitions.
Create a new style from the required information . ` style ` the egui style information ` font_definitions ` the current font definitions .
pub fn new(style: Style, font_definitions: FontDefinitions) -> Self {
        // TODO: Determine if there is a better way to exclude the defaults.
        let mut font_data = BTreeMap::new();
        for (name, data) in font_definitions.font_data.iter() {
            if !DEFAULT_FONTS.contains(&name.as_str()) {
                font_data.insert(name.clone(), base64::encode(data));
            }
        }
        Self {
            version: CURRENT_VERSION,
            style,
            font_definitions,
            font_data,
        }
    }
pub fn new ( style : Style , font_definitions : FontDefinitions ) -> Self { // TODO: Determine if there is a better way to exclude the defaults. let mut font_data = BTreeMap :: new ( ) ; for ( name , data ) in font_definitions . font_data . iter ( ) { if ! DEFAULT_FONTS . contains ( & name . as_str ( ) ) { font_data . insert ( name . clone ( ) , base64 :: encode ( data ) ) ; } } Self { version : CURRENT_VERSION , style , font_definitions , font_data , } }
Create a new style from the required information.
Create a new style from the required information .
style
Style
font_definitions
FontDefinitions