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)
This commit is contained in:
Luke Faraone 2013-07-03 16:37:56 -04:00
parent d284c92ea0
commit 490020b441
1 changed files with 1 additions and 1 deletions

View File

@ -595,7 +595,7 @@ def is_buggy_ua(agent):
This may get fixed in the future, but for right now we can This may get fixed in the future, but for right now we can
just serve the more conservative CSS to all our desktop apps. 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): def get_pointer_backend(request, user_profile):
return json_success({'pointer': user_profile.pointer}) return json_success({'pointer': user_profile.pointer})