Custom Fonts
Using custom fonts is very easy and straight-forward in Ionic 4 apps. There are two ways it can be done
Last updated
Using custom fonts is very easy and straight-forward in Ionic 4 apps. There are two ways it can be done
Last updated
@font-face {
font-family: 'Qranklestein';
font-style: normal;
font-weight: normal;
src: url('./assets/fonts/Qranklestein.ttf');
}@font-face {
font-family: 'Muli';
font-style: italic;
font-weight: bold;
src: url('./assets/fonts/Muli-BoldItalic.ttf');
}:root[mode=ios] .muli,
:root[mode=md] .muli{
--ion-font-family: 'Muli'!important;
font-family: 'Muli' !important;
}<link href="https://fonts.googleapis.com/css?family=Srisakdi" rel="stylesheet">:root[mode=ios] .srisakdi,
:root[mode=md] .srisakdi{
--ion-font-family: 'Srisakdi'!important;
font-family: 'Srisakdi' !important;
}