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

Add Ubuntu Desktop fonts including CJK and emoji support #6364

Closed
wants to merge 1 commit into from

Conversation

hata6502
Copy link

End-user friendly description of the problem this fixes or functionality that this introduces
This change improves text rendering in the OpenHands container environment by adding standard Ubuntu Desktop fonts. Users will see better quality text display, especially for CJK (Chinese, Japanese, Korean) characters and emoji. This is particularly beneficial for developers working with non-Latin scripts or using emoji in their documentation and communications.

  • Include this change in the Release Notes. If checked, you must provide an end-user friendly description for your change below

Added standard Ubuntu Desktop fonts to improve text rendering quality, especially for CJK (Chinese, Japanese, Korean) characters and emoji support. This makes the development environment more user-friendly for international developers.


Give a summary of what the PR does, explaining any non-trivial design decisions
This PR adds commonly used Ubuntu Desktop font packages to the base system dependencies in Dockerfile.j2. The font selection is based on the Ubuntu 24.04 Desktop manifest, ensuring we include well-maintained and standard fonts that provide comprehensive language support.

Added font packages:

  • fonts-arphic-ukai, fonts-arphic-uming (Chinese fonts)
  • fonts-noto-cjk (CJK support)
  • fonts-noto-color-emoji (Emoji support)
  • fonts-noto-core, fonts-noto-mono (Core Noto fonts)
  • fonts-dejavu-core, fonts-liberation, fonts-opensymbol, fonts-urw-base35 (Standard Latin fonts)
  • fonts-droid-fallback (Fallback fonts)

Design decisions:

  1. Used standard Ubuntu packages instead of custom font installation for better maintainability
  2. Selected fonts from Ubuntu Desktop manifest to ensure compatibility and long-term support
  3. Included both CJK and emoji fonts to provide comprehensive international support

Link of any specific issues this addresses
Fixes #6363

@hata6502 hata6502 closed this Jan 20, 2025
@hata6502 hata6502 deleted the add-desktop-fonts branch January 20, 2025 17:01
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.

feat: Add Ubuntu Desktop fonts in Browser runtime to improve text rendering
2 participants