Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

fix: optimize macOS font loading for better CJK support

WeiBing403773e04e75
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.py
index eb995bc03..21dc3e6d8 100644
--- a/browser_use/agent/service.py
+++ b/browser_use/agent/service.py
@@ -834,9 +834,9 @@ class Agent:
]
elif platform.system() == 'Darwin': # macOS
font_options = [
- '/System/Library/Fonts/PingFang.ttc',
- '/System/Library/Fonts/Apple Color Emoji.ttc',
- '/System/Library/Fonts/Helvetica.ttc',
+ 'Hiragino Sans GB', # Primary font with full Unicode support (CJK + Latin)
+ '.AppleSystemUIFont', # System UI font as fallback
+ 'Apple Color Emoji', # Emoji and special characters
]
else: # Linux and others
font_options = [