-
Couldn't load subscription status.
- Fork 69
Closed
Description
When using CJK fonts, the font does not display correctly. I have confirmed that the font is installed using the code below.
library(showtext)
font_add_google('Noto Sans KR', 'NotoSans-KR')
font_families()output
'sans''serif''mono''wqy-microhei''Roboto Condensed''NotoSans-KR'
When using data written in English, the font is displayed beautifully. I used the code below.
library("ganttrify")
library("MetBrewer")
options(repr.plot.width = 10, repr.plot.height = 5)
ganttrify(
project = ganttrify::test_project,
size_text_relative = 1.2,
axis_text_align = "left",
label_wrap = 50,
# hide_wp = TRUE,
alpha_wp = 0,
line_end_wp = "round", # alternative values: "butt" or "square"
line_end_activity = "round", # alternative values: "butt" or "square"
project_start_date = "2025-09",
colour_palette = MetBrewer::met.brewer("Lakota"),
font_family = "NotoSans-KR"
)output:
Same data but contain korean alphabets looks ugly.
options(repr.plot.width = 10, repr.plot.height = 5)
ganttrify(
project = df,
size_text_relative = 1.2,
axis_text_align = "left",
label_wrap = 50,
# hide_wp = TRUE,
alpha_wp = 0,
line_end_wp = "round", # alternative values: "butt" or "square"
line_end_activity = "round", # alternative values: "butt" or "square"
project_start_date = "2025-09",
colour_palette = MetBrewer::met.brewer("Lakota"),
font_family = "NotoSans-KR"
)output:
I'm not sure why this happens, but is there any solution?
Metadata
Metadata
Assignees
Labels
No labels