How to include a custom font in ioni 3?











up vote
0
down vote

favorite












Custom Font related question.
It's the first time that I try to use a custom font inside the App but I have a lot of problems..



Example: I want to use this google font https://fonts.google.com/specimen/Special+Elite



I've downloaded this font and put it into /assets/fonts



In variables.scss I added the code:



@font-face {
font-family: 'SpecialElite-Regular';
src: url('../assets/fonts/SpecialElite-Regular.ttf') format('ttf');
font-weight: 800;
font-style: regular;
}


and I tried to apply this font to all the code:
app.scss



*{
font-family: "SpecialElite" !important;
}


But the font isn't shown (not in browser, not in app).



How can I use a custom font?
I did not find any working guide.



Thank you in advance.










share|improve this question


























    up vote
    0
    down vote

    favorite












    Custom Font related question.
    It's the first time that I try to use a custom font inside the App but I have a lot of problems..



    Example: I want to use this google font https://fonts.google.com/specimen/Special+Elite



    I've downloaded this font and put it into /assets/fonts



    In variables.scss I added the code:



    @font-face {
    font-family: 'SpecialElite-Regular';
    src: url('../assets/fonts/SpecialElite-Regular.ttf') format('ttf');
    font-weight: 800;
    font-style: regular;
    }


    and I tried to apply this font to all the code:
    app.scss



    *{
    font-family: "SpecialElite" !important;
    }


    But the font isn't shown (not in browser, not in app).



    How can I use a custom font?
    I did not find any working guide.



    Thank you in advance.










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Custom Font related question.
      It's the first time that I try to use a custom font inside the App but I have a lot of problems..



      Example: I want to use this google font https://fonts.google.com/specimen/Special+Elite



      I've downloaded this font and put it into /assets/fonts



      In variables.scss I added the code:



      @font-face {
      font-family: 'SpecialElite-Regular';
      src: url('../assets/fonts/SpecialElite-Regular.ttf') format('ttf');
      font-weight: 800;
      font-style: regular;
      }


      and I tried to apply this font to all the code:
      app.scss



      *{
      font-family: "SpecialElite" !important;
      }


      But the font isn't shown (not in browser, not in app).



      How can I use a custom font?
      I did not find any working guide.



      Thank you in advance.










      share|improve this question













      Custom Font related question.
      It's the first time that I try to use a custom font inside the App but I have a lot of problems..



      Example: I want to use this google font https://fonts.google.com/specimen/Special+Elite



      I've downloaded this font and put it into /assets/fonts



      In variables.scss I added the code:



      @font-face {
      font-family: 'SpecialElite-Regular';
      src: url('../assets/fonts/SpecialElite-Regular.ttf') format('ttf');
      font-weight: 800;
      font-style: regular;
      }


      and I tried to apply this font to all the code:
      app.scss



      *{
      font-family: "SpecialElite" !important;
      }


      But the font isn't shown (not in browser, not in app).



      How can I use a custom font?
      I did not find any working guide.



      Thank you in advance.







      ionic-framework fonts ionic3 custom






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 10 hours ago









      JEricaM

      357321




      357321
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          You should take a look in the theme/variables.scss file, there is exactly described what you need.






          share|improve this answer





















          • in variable.scss there is nothing about custom fonts, the only font reference is import "roboto"; import "noto-sans";
            – JEricaM
            10 hours ago










          • well if you need a working example see: forum.ionicframework.com/t/custom-fonts-in-ionic3/87048/15
            – dgbt
            10 hours ago













          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53416149%2fhow-to-include-a-custom-font-in-ioni-3%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          You should take a look in the theme/variables.scss file, there is exactly described what you need.






          share|improve this answer





















          • in variable.scss there is nothing about custom fonts, the only font reference is import "roboto"; import "noto-sans";
            – JEricaM
            10 hours ago










          • well if you need a working example see: forum.ionicframework.com/t/custom-fonts-in-ionic3/87048/15
            – dgbt
            10 hours ago

















          up vote
          0
          down vote













          You should take a look in the theme/variables.scss file, there is exactly described what you need.






          share|improve this answer





















          • in variable.scss there is nothing about custom fonts, the only font reference is import "roboto"; import "noto-sans";
            – JEricaM
            10 hours ago










          • well if you need a working example see: forum.ionicframework.com/t/custom-fonts-in-ionic3/87048/15
            – dgbt
            10 hours ago















          up vote
          0
          down vote










          up vote
          0
          down vote









          You should take a look in the theme/variables.scss file, there is exactly described what you need.






          share|improve this answer












          You should take a look in the theme/variables.scss file, there is exactly described what you need.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 10 hours ago









          dgbt

          1314




          1314












          • in variable.scss there is nothing about custom fonts, the only font reference is import "roboto"; import "noto-sans";
            – JEricaM
            10 hours ago










          • well if you need a working example see: forum.ionicframework.com/t/custom-fonts-in-ionic3/87048/15
            – dgbt
            10 hours ago




















          • in variable.scss there is nothing about custom fonts, the only font reference is import "roboto"; import "noto-sans";
            – JEricaM
            10 hours ago










          • well if you need a working example see: forum.ionicframework.com/t/custom-fonts-in-ionic3/87048/15
            – dgbt
            10 hours ago


















          in variable.scss there is nothing about custom fonts, the only font reference is import "roboto"; import "noto-sans";
          – JEricaM
          10 hours ago




          in variable.scss there is nothing about custom fonts, the only font reference is import "roboto"; import "noto-sans";
          – JEricaM
          10 hours ago












          well if you need a working example see: forum.ionicframework.com/t/custom-fonts-in-ionic3/87048/15
          – dgbt
          10 hours ago






          well if you need a working example see: forum.ionicframework.com/t/custom-fonts-in-ionic3/87048/15
          – dgbt
          10 hours ago




















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53416149%2fhow-to-include-a-custom-font-in-ioni-3%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Trompette piccolo

          Slow SSRS Report in dynamic grouping and multiple parameters

          Simon Yates (cyclisme)