13 Haziran 2010 Pazar

Google Font api

 

 









The Google Font API helps you add web fonts to any web page.


Benefits of the Google Font API include:



  • A choice of high quality open source fonts.

  • Works in most browsers.

  • Extremely easy to use.


For example, the following text uses a web font called Tangerine:



Making the Web Beautiful!

Applying a font is easy: just add a special stylesheet link to your web page, then use the font in a CSS style.


For details, see the quick start example.



Google Font Directory


To give developers a choice of high-quality fonts when using the Font API, we have created the Google Font Directory. There you can browse our catalog of available fonts, learn about the font designers who created them, and copy the code required to use them on your web page.


The fonts in the directory are all released under open source licenses; you can use them on any non-commercial or commercial project.



Visit the Google Font Directory now


 

refer: http://code.google.com/intl/tr-TR/apis/webfonts/

10 Haziran 2010 Perşembe

MVC virtualPathProvider


private string GetViewPath(string[] locations, string viewName,string controllerName)
{

for (int i = 0; i < locations.Length; i++)
{
path
= string.Format(System.Globalization.CultureInfo.InvariantCulture, locations[i],
new object[] { viewName, controllerName });
if (this.VirtualPathProvider.FileExists(path))
{
return path;
}
}
return null;
}


private string GetViewPath(string[] locations, string viewName,string controllerName)
{
return pPaths.Where(pp => pp.Name == controllerName && pp.ciewName= viewName ).First().Path();
}