Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How to embed .eot,.woff,.ttf font file in assembly?
Posted

1 solution

I got the solution for the above... Posting the answer since it might be useful for some other.

[assembly: WebResource("SettingsControl.Fonts.glyphicons-halflings-regular.eot", "application/vnd.ms-fontobject")]
[assembly: WebResource("SettingsControl.Fonts.glyphicons-halflings-regular.woff", "application/x-font-woff")]
[assembly: WebResource("SettingsControl.Fonts.glyphicons-halflings-regular.ttf", "application/x-font-ttf")]
[assembly: WebResource("SettingsControl.Fonts.glyphicons-halflings-regular.svg", "image/svg+xml")]
[assembly: WebResource("SettingsControl.Fonts.glyphicons-halflings-regular.woff2", "application/x-font-woff")]
 
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