Last modified: 2011-10-11 05:22:40 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T33337, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31337 - Webfonts don't render on Android 2.3.x
Webfonts don't render on Android 2.3.x
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WebFonts (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Santhosh Thottingal
: i18n, mobile
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-03 23:29 UTC by Tomasz Finc
Modified: 2011-10-11 05:22 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Tomasz Finc 2011-10-03 23:29:48 UTC
When I visit http://thottingal.in/wiki/index.php?title=Main_Page on Android 2.3.x I am not able to see any of the Web fonts. Visting the same link with Android 3.x works just fine.

Both work great if i visit http://www.google.com/webfonts
Comment 1 Brion Vibber 2011-10-03 23:31:10 UTC
\/\/3|8 f0n+zzzzz!!!!!!!!111
Comment 2 Brion Vibber 2011-10-03 23:40:09 UTC
I can confirm with Android default browser on 2.3.6 (Nexus One).

Firefox 8 on same phone renders them nicely though!


Most I can see on error console from Android stock browser is this fairly generic looking line (using debug=true so the source is findable):

I/browser (21734): Console: Requested unknown font http://thottingal.in/wiki/extensions/WebFonts/js/webfonts.js:24

this seems to happen only when clicking 'reset', and is a message that comes straight from the extension.
Comment 3 Patrick Reilly 2011-10-03 23:43:31 UTC
The android browser breaks on a local() reference inside of a @font-face declaration and discards the rest of the declaration.

Is it possible that this is the issue: http://code.google.com/p/android/issues/detail?id=10609
Comment 4 Patrick Reilly 2011-10-03 23:45:38 UTC
and it looks like that is what you are doing with the following:

<code>
@font-face {
	font-family: 'RufScript';
	src: url('/wiki/extensions/WebFonts/fonts/en/Rufscript.eot');
	src: local('RufScript'),		url('/wiki/extensions/WebFonts/fonts/en/Rufscript.woff') format('woff'),		url('/wiki/extensions/WebFonts/fonts/en/Rufscript.ttf') format('truetype');
	font-weight: normal;
}
</code>
Comment 5 Santhosh Thottingal 2011-10-11 05:22:40 UTC
r99464 fixed it. Tested using Android 2.3 emulator and an android 2.3.5 phone. 'local' syntax does not have much significance for for mobiles , since unlike desktops, chances are rare for phones having these fonts locally.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links