Skip to content

Font family supplied via theme(text = ...) is not honored in plot headings #40

@nbenn

Description

@nbenn

When supplying a custom font via theme(text = element_text(family = ...)), this is picked up in some places, i.e.

family <- if (is.na(theme$text$family) || theme$text$family == "") "sans" else theme$text$family

but in other places, this is ignored, i.e.

geom_text(aes(x, y, label = label, hjust = hjust, fontface = fontface),
filter(forest_text, parse == parse_type),
na.rm = TRUE, parse = parse_type,
size = format_options$text_size
)

My issue goes away, when I patch through family = theme$text$family to the aes() call in line 414.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions