Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Regarding the font type.. View modes: 
User avatar
Member
Member
sansugoi_sayounara-hotmail - 5/11/2012 9:00:28 AM
   
Regarding the font type..
Hi all,



I want to know how to add external fonts in my css. I have written the following in css:

@font-face {
font-family: 'MyriadProCondensed';
src: url('~/App_Themes/style_css1/Globe_New/myriadpro-cond-webfont.eot');
src: url('~/App_Themes/style_css1/Globe_New/myriadpro-cond-webfont.eot?#iefix') format('embedded-opentype'),
url('~/App_Themes/style_css1/Globe_New/myriadpro-cond-webfont.woff') format('woff'),
url('~/App_Themes/style_css1/Globe_New/myriadpro-cond-webfont.ttf') format('truetype'),
url('~/App_Themes/style_css1/Globe_New/myriadpro-cond-webfont.svg#MyriadProCondensed') format('svg');
font-weight: normal;
font-style: normal;

}

and add the font files in ~/App_Themes/style_css1/Globe_New/ folder, is it correct, if not then please guide me as this is very very urgent..

Thanks
Sansugoi

User avatar
Kentico Support
Kentico Support
kentico_radekm2 - 5/14/2012 12:56:26 AM
   
RE:Regarding the font type..
Hello.

There is nothing special about CSS in Kentico CMS. You can use any standard technique for adding new fonts into the stylesheet file, as in any other ASP.NET web part or HTML page. So, you can simply follow any of articles at:

https://www.google.com/#hl=en&output=search&sclient=psy-ab&q=how+to+add+external+font+in+css

Do you have any particular problem with it? Thank you.

Best Regards,
Radek Macalik