Skip to content

select_font tests fail when other fonts present on the system #217

@jayvdb

Description

@jayvdb

I am seeing the following errors, because the tests are expecting DejaVu fonts to be the result. I have DejaVu fonts installed, but other fonts are being selected. My guess is that the results I am getting are "correct" for my system.

---- test::select_best_match_sans_serif stdout ----
thread 'test::select_best_match_sans_serif' panicked at tests/select_font.rs:57:13:
assertion `left == right` failed
  left: Some("arial.ttf")
 right: Some("DejaVuSans.ttf")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- test::select_best_match_bold_sans_serif stdout ----
thread 'test::select_best_match_bold_sans_serif' panicked at tests/select_font.rs:57:13:
assertion `left == right` failed
  left: Some("arialbd.ttf")
 right: Some("DejaVuSans-Bold.ttf")

---- test::select_best_match_monospace stdout ----
thread 'test::select_best_match_monospace' panicked at tests/select_font.rs:57:13:
assertion `left == right` failed
  left: Some("SourceCodePro-Regular.otf")
 right: Some("DejaVuSansMono.ttf")

---- test::select_best_match_serif stdout ----
thread 'test::select_best_match_serif' panicked at tests/select_font.rs:57:13:
assertion `left == right` failed
  left: Some("times.ttf")
 right: Some("DejaVuSerif.ttf")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions