0
Welcome Guest! Login
0 items Join Now

How can I serve my fonts directly

    • Eoin's Avatar
    • Eoin
    • Hero Rocketeer
    • Posts: 424
    • Thanks: 18

    How can I serve my fonts directly

    Posted 10 years 2 weeks ago
    • When adding a CDN to my site it breaks Google fonts and font awesome.

      Can you tell me how I can serve my fonts directly, I believe it is the relative links that are a problem.

      Which files do I need to edit to counteract this issue?
    • Owner of Square Balloon
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: How can I serve my fonts directly

    Posted 10 years 2 weeks ago
    • Eoin's Avatar
    • Eoin
    • Hero Rocketeer
    • Posts: 424
    • Thanks: 18

    Re: How can I serve my fonts directly

    Posted 10 years 2 weeks ago
    • It breaks because no fonts are loaded. Google fonts are replaced with Arial. Font Awesome is replaced by notation depending on the browser.

      The CDN has an excludes file option. I can include CSS in general, although I thought that kind of was the point of a CDN (as well as images etc). That's why I was looking for a better solution (or what I perceived to be a correct solution).

      I can also exlude individual files, although I assume the fonts are the wrong files to exclude, but the CSS files with the references to the fonts. My thinking is that it would be better if there was an absolute reference to fonts, although when I tried that it didn't seem to work.
    • Owner of Square Balloon
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: How can I serve my fonts directly

    Posted 10 years 2 weeks ago
    • Eoin's Avatar
    • Eoin
    • Hero Rocketeer
    • Posts: 424
    • Thanks: 18

    Re: How can I serve my fonts directly

    Posted 10 years 2 weeks ago
    • Top man cheers
    • Owner of Square Balloon
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: How can I serve my fonts directly

    Posted 10 years 1 week ago

Time to create page: 0.081 seconds