katana-document-viewer 0.1.4

KatanA document viewer artifact, render evaluation, and export foundation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use super::*;

#[test]
fn font_size_matches_heading_levels() {
    let heading_1 = SurfaceLine::heading(1, "h1".to_string()).font_size();
    let heading_2 = SurfaceLine::heading(2, "h2".to_string()).font_size();
    let heading_3 = SurfaceLine::heading(3, "h3".to_string()).font_size();

    assert_eq!(heading_1, 40.0);
    assert_eq!(heading_2, 34.0);
    assert_eq!(heading_3, 28.0);
}