Skip to content

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

Add ArialUni font rendering, which can fix non-alphabet character rendering issues in gif picture

Alan Zhang / 遗忘的银灵d8a020060f8f
diff --git a/browser_use/agent/gif.py b/browser_use/agent/gif.py
index d93b587cc..cba41b56b 100644
--- a/browser_use/agent/gif.py
+++ b/browser_use/agent/gif.py
@@ -49,7 +49,8 @@ def create_history_gif(
# Try to load nicer fonts
try:
# Try different font options in order of preference
- font_options = ['Helvetica', 'Arial', 'DejaVuSans', 'Verdana']
+ # ArialUni is a font that comes with Office and can render most non-alphabet characters
+ font_options = ['Helvetica', 'ArialUni', 'Arial', 'DejaVuSans', 'Verdana']
font_loaded = False
for font_name in font_options: