docx_reader/documents/elements/
font_scheme.rs

1use serde::Serialize;
2
3#[derive(Debug, Clone, PartialEq, Serialize)]
4#[serde(rename_all = "camelCase")]
5pub struct FontSchemeFont {
6	pub script: String,
7	pub typeface: String,
8}
9
10#[derive(Debug, Clone, PartialEq, Serialize, Default)]
11#[serde(rename_all = "camelCase")]
12pub struct FontGroup {
13	pub latin: String,
14	pub ea: String,
15	pub cs: String,
16	pub fonts: Vec<FontSchemeFont>,
17}
18
19#[derive(Debug, Clone, PartialEq, Serialize, Default)]
20#[serde(rename_all = "camelCase")]
21pub struct FontScheme {
22	pub major_font: FontGroup,
23	pub minor_font: FontGroup,
24}
25
26// For now reader only
27impl FontScheme {
28	pub fn new() -> Self {
29		Self::default()
30	}
31}