mirror of
https://github.com/browser-use/browser-use.git
synced 2025-02-18 01:18:20 +03:00
Merge pull request #719 from weibing-bab/main
fix: optimize macOS font loading for better CJK support
This commit is contained in:
@@ -836,9 +836,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 = [
|
||||
|
||||
Reference in New Issue
Block a user