From 490020b441e4929d82db1fdab6500780ed5bfa6c Mon Sep 17 00:00:00 2001 From: Luke Faraone Date: Wed, 3 Jul 2013 16:37:56 -0400 Subject: [PATCH] Serve custom fonts to OS X desktop clients Previously we added code which prevented us from serving custom fonts to Humbug Desktop user agents due to concerns QtWebKit bugs with @font-face. On OS X, we use the system WebKit so we don't have this bug. In fact, the aformentioned change caused us to have no custom fonts at all on Mac systems! Here we fix this by resuming the serving of such fonts to Macs. (imported from commit b222e9dd721914d17aed8341244cfb5c71149a12) --- zephyr/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zephyr/views.py b/zephyr/views.py index 24e1efe3ca..8a1f38c82e 100644 --- a/zephyr/views.py +++ b/zephyr/views.py @@ -595,7 +595,7 @@ def is_buggy_ua(agent): This may get fixed in the future, but for right now we can just serve the more conservative CSS to all our desktop apps. """ - return "Humbug Desktop/" in agent + return "Humbug Desktop/" in agent and not "Macintosh" in agent def get_pointer_backend(request, user_profile): return json_success({'pointer': user_profile.pointer})