Ported helper functions font-files() and font-url(), used in the @font-face mixin.
Helper function to create a list of font files for the src attribute in @font-face.
In the global variable $font-path, you can specify the path to the folder with fonts relative to style files, by default the path to the fonts is "fonts".
Ported helper functions font-files() and font-url(), used in the @font-face mixin.
Helper function to create a list of font files for the src attribute in @font-face. In the global variable $font-path, you can specify the path to the folder with fonts relative to style files, by default the path to the fonts is "fonts".
Usage:
If the font format is not specified, the function will add the format corresponding to the file extension.
use mixin this way: