Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated user agent strings to support Firefox v4 & IE 9

  • Loading branch information...
commit f343dba5fe441b7ce860af234fb024453712c535 1 parent 891b456
Garrick Van Buren authored
Showing with 3 additions and 2 deletions.
  1. +2 −2 fontue.ru
  2. +1 −0  workflow/fontforge_font_optimizer.pe
View
4 fontue.ru
@@ -105,7 +105,7 @@ fontue = proc do |env|
#
# DON'T SERVE FONTS TO UNSUPPORTED BROWSERS
- supported_browsers = /Chrome\/[3-9]|Firefox\/[3-9].[4-9]|\sMSIE\s[4-9]|Konqueror\/[4-9].[3-9]|Midori|Minefield|Shiretoko|IceCat|Opera\/9.|\sAppleWebKit/
+ supported_browsers = /Chrome\/[3-9]|Firefox\/[3-9]|\sMSIE\s|Konqueror\/[4-9]|Midori|Minefield|Shiretoko|IceCat|Opera\/9.|\sAppleWebKit/
return [417, {"Content-Type" => "text/html"}, ["Expectation Failed Bad Agent"]] unless env['HTTP_USER_AGENT'].match(supported_browsers)
slug = env["PATH_INFO"].split('/')[1]
@@ -125,7 +125,7 @@ fontue = proc do |env|
slug = slug.split("'),%20url('")[0]
# GRAB THE BROWSER APPROPRIATE FORMAT
- woff_browsers = /Firefox\/3.[6-9]|Konqueror\/[4-9].[5-9]/
+ woff_browsers = /Firefox\/[3-9]|Konqueror\/[4-9]/
eot_browsers = /\sMSIE\s/
svg_browsers = /\s\(iP|Chrome\/3|Presto\/(\d+.)*\d+$/
View
1  workflow/fontforge_font_optimizer.pe
@@ -26,6 +26,7 @@ Open($1)
# 1A. Update name, family name, and 'name for humans' to be the same
# This is a workaround for a bug in Micrsoft Windows that refuses to load fonts where these names are different
SetFontNames($fontname, $fontname, $fontname)
+SetTTFName(0x409,1, $fontname)
# 1B. UPDATE: The Microsoft Windows bug that caused fonts with tables larger than 2.5K Unicode characters to not be
# be loaded was remedied with a security fix in January 2010: http://support.microsoft.com/kb/978909/
Please sign in to comment.
Something went wrong with that request. Please try again.