My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/prototypes/novelist/novelist-gtk/src/text_tags.rs

10 lines
317 B

use gtk4::{prelude::TextTagExt, TextTag, TextTagTable};
/// Generate a table of text tags used in novelist
pub fn generate_table() -> TextTagTable {
let text_tag_table = TextTagTable::new();
let bold = TextTag::new(Some("bold"));
bold.set_weight(600);
text_tag_table.add(&bold);
text_tag_table
}