Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: Font Awesome Light Icons einbinden

    Donco

    • Schreiberling
    • Beiträge: 258
    Font Awesome Light Icons einbinden
    am: 10. Februar 2020, 23:21:33
    Ich würde gerne die Font Awesome Light Icons einbinden. Die Schriftarten haben ich ins Fonts Verzeichnis kopiert.
    Verwendet wird das Standard Modified Responsive Template. Weiß jemand wie ich den Code in der fontawesome-all.css Datei ab Zeile 4303 ergänzen muss damit die Einbindung klappt? Vielen Dank im Voraus.

    Code: CSS  [Auswählen]
    @font-face {
      font-family: 'Font Awesome 5 Brands';
      font-style: normal;
      font-weight: normal;
      font-display: swap;
      src: url("../css/fonts/fa-brands-400.eot");
      src: url("../css/fonts/fa-brands-400.eot?#iefix") format("embedded-opentype"), url("../css/fonts/fa-brands-400.woff2") format("woff2"), url("../css/fonts/fa-brands-400.woff") format("woff"), url("../css/fonts/fa-brands-400.ttf") format("truetype"), url("../css/fonts/fa-brands-400.svg#fontawesome") format("svg"); }

    .fab {
      font-family: 'Font Awesome 5 Brands'; }
    @font-face {
      font-family: 'Font Awesome 5 Free';
      font-style: normal;
      font-weight: 400;
      font-display: swap;
      src: url("../css/fonts/fa-regular-400.eot");
      src: url("../css/fonts/fa-regular-400.eot?#iefix") format("embedded-opentype"), url("../css/fonts/fa-regular-400.woff2") format("woff2"), url("../css/fonts/fa-regular-400.woff") format("woff"), url("../css/fonts/fa-regular-400.ttf") format("truetype"), url("../css/fonts/fa-regular-400.svg#fontawesome") format("svg"); }

    .far {
      font-family: 'Font Awesome 5 Free';
      font-weight: 400; }
    @font-face {
      font-family: 'Font Awesome 5 Free';
      font-style: normal;
      font-weight: 900;
      font-display: swap;
      src: url("../css/fonts/fa-solid-900.eot");
      src: url("../css/fonts/fa-solid-900.eot?#iefix") format("embedded-opentype"), url("../css/fonts/fa-solid-900.woff2") format("woff2"), url("../css/fonts/fa-solid-900.woff") format("woff"), url("../css/fonts/fa-solid-900.ttf") format("truetype"), url("../css/fonts/fa-solid-900.svg#fontawesome") format("svg"); }

    .fa,
    .fas {
      font-family: 'Font Awesome 5 Free';
      font-weight: 900; }


    Linkback: https://www.modified-shop.org/forum/index.php?topic=40803.0

    hpzeller

    • Experte
    • Beiträge: 4.130
    • Geschlecht:
    Re: Font Awesome Light Icons einbinden
    Antwort #1 am: 11. Februar 2020, 12:44:17
    Versuch es mal so.

    Code: CSS  [Auswählen]
    @font-face {
      font-family: 'Font Awesome 5 Pro';
      font-style: normal;
      font-weight: 300;
      font-display: auto;
      src: url("../webfonts/fa-light-300.eot");
      src: url("../webfonts/fa-light-300.eot?#iefix") format("embedded-opentype"), url("../webfonts/fa-light-300.woff2") format("woff2"), url("../webfonts/fa-light-300.woff") format("woff"), url("../webfonts/fa-light-300.ttf") format("truetype"), url("../webfonts/fa-light-300.svg#fontawesome") format("svg"); }
     
    .fal {
      font-family: 'Font Awesome 5 Pro';
      font-weight: 300; }
     

    Gruss
    Hanspeter

    Timm

    • Fördermitglied
    • Beiträge: 6.343
    Re: Font Awesome Light Icons einbinden
    Antwort #2 am: 11. Februar 2020, 20:30:37
    Abend

    Sind die meisten Light Icons in Font Awesome 5 nicht der Pro Variante vorbehalten und wir haben die gar nicht?

    Gruß Timm

    Donco

    • Schreiberling
    • Beiträge: 258
    Re: Font Awesome Light Icons einbinden
    Antwort #3 am: 22. Februar 2020, 16:09:03
    @Hanspeter: Vielen Dank!

    @FräuleinGarn: Die Light Icons sind nur in der Pro Variante enthalten.
    2 Antworten
    1434 Aufrufe
    26. August 2016, 22:13:13 von scroll
    1 Antworten
    249 Aufrufe
    12. Februar 2024, 08:28:51 von Markus
               
    anything