NS_LITERAL_CSTRING("resource:/res/fonts/fontEncoding.properties"));
NS_LITERAL_CSTRING("resource:
GetEncoding(const nsCString& aFontName, nsACString& aValue){  nsresult rv;  // see if we should init the property  if (! gFontEncodingProperties) {    // but bail out for common fonts used at startup...    if (aFontName.EqualsLiteral("Lucida Grande") ||        aFontName.EqualsLiteral("Charcoal") ||        aFontName.EqualsLiteral("Chicago") ||        aFontName.EqualsLiteral("Capitals") ||        aFontName.EqualsLiteral("Gadget") ||        aFontName.EqualsLiteral("Sand") ||        aFontName.EqualsLiteral("Techno") ||        aFontName.EqualsLiteral("Textile") ||        aFontName.EqualsLiteral("Geneva") )      return NS_ERROR_NOT_AVAILABLE; // error mean do not get a special encoding    // init the property now    rv = NS_LoadPersistentPropertiesFromURISpec(&gFontEncodingProperties,         NS_LITERAL_CSTRING("resource:/res/fonts/fontEncoding.properties"));    if (NS_FAILED(rv))      return rv;  }  nsCAutoString name(NS_LITERAL_CSTRING("encoding.") +                     aFontName +                     NS_LITERAL_CSTRING(".ttf"));  name.StripWhitespace();  ToLowerCase(name);  nsAutoString value;  rv = gFontEncodingProperties->GetStringProperty(name, value);  if (NS_SUCCEEDED(rv))    CopyUCS2toASCII(value, aValue);  return rv;}