'./'-ing doesn't work very well for bundling so reference directly from the site root folder instead. Include("~/Content/", new CssRewriteUrlTransform())Īn alternative - if for some reason the above didn't work for you - would be to change how the src property references the 'Fonts' folder. I think CssRewriteUrlTransform might be the way to go: If what I assumed is incorrect please show us how you structured your files In this case your font will be loaded relative to the "css" file which is located inside the content folder which also contains the "fonts" folder and if your folders structure like belowĬhange /BundleStyles/css to /Content/css Īnd reference your font like this src: url('Fonts/ProximaNova/ProximaNova-Bold.otf') I'm assuming that the bundled css virtual location /BundleStyles/css doesn't actually exist. It may also allow you to use file format like ttf, woff, woff2, eot and svg format. The weights support all the glyphs as per your needs. Well, I think the problem is with your font location. Proxima Nova Bold comes with different font weights, glyphs, widths, as it meets the requirement of your design and development projects.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |