Click here to Skip to main content
15,923,197 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Requirement in my project is to display page content by using Century Gothic font. So, I installed 'Century Gothic' fonts to system as this font family is not included in any OS. However, the installation completed and checked in MS Word Century Gothic font family is rendering correctly. But, when i used in c# code to view content 'Century Gothic' font is not rendering correctly. It seems like could not read font from windows and showing content bold by using some default font-family.

Any idea why this is happening only in ASP.NET and how i can resolve this issue.

Thanks,
Arunima
Posted

1 solution

I need to understand that the fonts are "rendered in ASP.NET", but they are rendered on the client side, so it all depends on what is installed in the client hosts. You should not assume too much and provide fallback font names, up to the generic names, such as "serif" or "sans-serif". Please see: http://www.w3schools.com/cssref/css_websafe_fonts.asp[^].

Alternatively, you can embed a font with your CSS: http://www.w3schools.com/css/css3_fonts.asp[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900