Index: fontyourface.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/fontyourface/fontyourface.module,v
retrieving revision 1.4.2.2
diff -u -p -r1.4.2.2 fontyourface.module
--- fontyourface.module	22 Jan 2011 05:40:59 -0000	1.4.2.2
+++ fontyourface.module	24 Jan 2011 03:34:18 -0000
@@ -744,10 +744,8 @@ function fontyourface_add_css_in_preproc
   else {
   
     if ($type == 'public') {
-    
-      $full_path = drupal_realpath(file_build_uri($css_path));
-      $base_path = drupal_realpath('.');
-      $css_path = str_replace($base_path . '/', '', $full_path);
+
+      $css_path = file_stream_wrapper_get_instance_by_scheme('public')->getDirectoryPath() . '/' . $css_path;
 
     } // if
 
