fn new(width: u16, height: u16) -> Self {
        RenderState {
            color_ctx: ColorCtx::new(
                ColorScheme::Monochrome1Bit,
                ColorClassic::Amber.rgb(),
                ColorClassic::Black.rgb(),
            ),
            char_width: 0,
            char_height: 0,
            page_on_time_ds: 30,
            page_off_time_ds: 0,
            text_rectangle: Rectangle::new(1, 1, width, height),
            just_page: JustificationPage::Middle,
            just_line: JustificationLine::Center,
            font_num: 1,
            font_version_id: None,
            line_spacing: None,
            char_spacing: None,
            line_number: 0,
            span_number: 0,
        }
    }
/// Create a new render state.
Create a new render state.
Create a new render state .
fn new(width: u16, height: u16) -> Self {
        RenderState {
            color_ctx: ColorCtx::new(
                ColorScheme::Monochrome1Bit,
                ColorClassic::Amber.rgb(),
                ColorClassic::Black.rgb(),
            ),
            char_width: 0,
            char_height: 0,
            page_on_time_ds: 30,
            page_off_time_ds: 0,
            text_rectangle: Rectangle::new(1, 1, width, height),
            just_page: JustificationPage::Middle,
            just_line: JustificationLine::Center,
            font_num: 1,
            font_version_id: None,
            line_spacing: None,
            char_spacing: None,
            line_number: 0,
            span_number: 0,
        }
    }
fn new ( width : u16 , height : u16 ) -> Self { RenderState { color_ctx : ColorCtx :: new ( ColorScheme :: Monochrome1Bit , ColorClassic :: Amber . rgb ( ) , ColorClassic :: Black . rgb ( ) , ) , char_width : 0 , char_height : 0 , page_on_time_ds : 30 , page_off_time_ds : 0 , text_rectangle : Rectangle :: new ( 1 , 1 , width , height ) , just_page : JustificationPage :: Middle , just_line : JustificationLine :: Center , font_num : 1 , font_version_id : None , line_spacing : None , char_spacing : None , line_number : 0 , span_number : 0 , } }
Create a new render state.
Create a new render state .
width
u16
height
u16