Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
XML
Hi All,

I have to use a web font that from another website and the URL of that is at the below.

<a href="http://fast.fonts.com/cssapi/b0549848-32a3-4c8e-a13e-810394960364.css">http://fast.fonts.com/cssapi/b0549848-32a3-4c8e-a13e-810394960364.css</a>

To add this web font I have used the following statement in my MasterPage's HTML file.

<link href="http://fast.fonts.com/cssapi/b0549848-32a3-4c8e-a13e-810394960364.css" type="text/css" rel="stylesheet" />

My MasterPage is a custom one. I tried the following statement but it didnot work because when I tried to save the MasterPages's HTML file an error occurs saying the file should have the .aspx extension.

<SharePoint:CssRegistration Name="<%$SPrl:~sitecollection/Style Library/MyCustomTheme/mycss.css%>" runat="server" After="corev15.css"/>

The problem I think the custom web font will be replaced by the default font in the default CSS file in the SharePoint Site.

So what can I do for to obstruct this problem? Please could someone help me solve this?

Thanks and regards,

Chiranthaka
Posted
Comments
KaushalJB 7-Oct-14 6:13am    
have u checked whether CSS is being loaded or not?
Chiranthaka Sampath 7-Oct-14 6:35am    
The CSS loading

1 solution

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