Skip to content

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

minor fix

vvincent1234d7de04e10244
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.py
index 60582f554..c7878cbeb 100644
--- a/browser_use/agent/service.py
+++ b/browser_use/agent/service.py
@@ -608,7 +608,7 @@ class Agent:
for font_name in font_options:
try:
- if platform.platform() == "Windows":
+ if platform.system() == "Windows":
# Need to specify the abs font path on Windows
font_name = os.path.join(os.getenv("WIN_FONT_DIR", "C:\\Windows\\Fonts"), font_name + ".ttf")
regular_font = ImageFont.truetype(font_name, font_size)