Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Improve font configuration in the docker image #310

Merged
merged 1 commit into from
Jul 2, 2022

Conversation

MurakamiShinyu
Copy link
Member

  • remove poor quality fonts (Unifont, IPAGothic, WenQuanYiZenHei)
  • install Microsoft TrueType core fonts (Andale Mono, Arial, Arial Black, Comic Sans MS, Courier New, Georgia, Impact, Times New Roman, Trebuchet MS, Verdana, and Webdings)
  • install all Noto fonts (including Noto CJK fonts, such as "Noto Serif CJK JP" and "Noto Sans CJK JP")
  • font alias Win/Mac mincho and gothic font names to Noto CJK fonts ("Yu Mincho" → "Noto Serif CJK JP", "Hiragino Sans" → "Noto Sans CJK JP", etc)

- remove poor quality fonts (Unifont, IPAGothic, WenQuanYiZenHei)
- install Microsoft TrueType core fonts (Andale Mono, Arial, Arial Black, Comic Sans MS, Courier New, Georgia, Impact, Times New Roman, Trebuchet MS, Verdana, and Webdings)
- install all Noto fonts (including Noto CJK fonts, such as "Noto Serif CJK JP" and "Noto Sans CJK JP")
- font alias Win/Mac mincho and gothic font names to Noto CJK fonts ("Yu Mincho" → "Noto Serif CJK JP", "Hiragino Sans" → "Noto Sans CJK JP", etc)

---

- resolves #303
@MurakamiShinyu
Copy link
Member Author

#309 を先にマージしてください。

Base automatically changed from docker-slim-playwright to main July 2, 2022 00:59
# install all Noto fonts
&& apt-get install -y fonts-noto \
# font aliases for Noto CJK fonts
&& echo '<?xml version="1.0"?>\
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

font alias Win/Mac mincho and gothic font names to Noto CJK fonts ("Yu Mincho" → "Noto Serif CJK JP", "Hiragino Sans" → "Noto Sans CJK JP", etc)

@MurakamiShinyu この対応を入れない場合でも問題なく動作すると思うのですが、Aliasを設定するのにはなにか理由はありますか?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@spring-raining #303 (comment) (font-family: serif を指定しても明朝体にならない問題と対策)で説明しました。ご覧ください。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve font configuration in the docker image
2 participants