ggsave() with Japanese fonts

Open
#1,440 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
kotlin, python

Research direction

Start at the Lets-Plot ggsave() entry point and compare its font-related arguments with the ggplot2 example in the report. Determine whether the API can accept a family such as IPAexGothic, and define done as Japanese text being saved correctly to PNG with that family.

Written by the indexing model from the issue text.

Description

In ggplot2, when using Japanese fonts, I was able to save Japanese to a PNG file by specifying the font family in ggsave(), like
ggsave("plot.png", plot = p, family = "IPAexGothic")
Is it not possible to specify the family in Lets-Plot's ggsave()?

Dominant language
Kotlin
Stars
1.8k
Forks
63
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from JetBrains/lets-plot

All issues in JetBrains/lets-plot

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.