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
|
elif platform.system() == 'Darwin': # macOS
|
||||||
font_options = [
|
font_options = [
|
||||||
'/System/Library/Fonts/PingFang.ttc',
|
'Hiragino Sans GB', # Primary font with full Unicode support (CJK + Latin)
|
||||||
'/System/Library/Fonts/Apple Color Emoji.ttc',
|
'.AppleSystemUIFont', # System UI font as fallback
|
||||||
'/System/Library/Fonts/Helvetica.ttc',
|
'Apple Color Emoji', # Emoji and special characters
|
||||||
]
|
]
|
||||||
else: # Linux and others
|
else: # Linux and others
|
||||||
font_options = [
|
font_options = [
|
||||||
|
|||||||
Reference in New Issue
Block a user