FPM.ftd
-- fpm.dependency: fifthtry.github.io/inter -- fpm.auto-import: fifthtry.github.io/inter as inter
-- fpm.type.headline-small.font: $inter.fonts.Inter -- ftd.text: role: $fpm.type.heading-small
fpm
font
packageWhile creating new fpm
font package you need to download
google-font-to-fpm.
Follow below steps to download google-font-to-fpm.
python3
on your machine, install requests
via using
below command on command promptpython3 -m pip install requests
Follow Below steps on https://fonts.google.com/specimen/Lato?query=lato
to download font CSS. Here we are going to use Lato
font.
+ Select this style link
Lato
font styles are presentUse on the web
section click on @import
radioGoogle Font
url e.g. Click here…CSS
styles by selecting all styles - ctrl+a
(windows) and ctrl+c
OR command+a
and command+c
(macOS)google-font-to-fpm
repository folder into SubLimeText editorfont.txt
filefont.txt
filefpm
font package on GitHub.com
Create new repository on your GitHub account, here we are creating package for
Lato
font so package name should be e.g. https://github.com/FifthTry/lato
(replace FifthTry
with your github account name).
lato
SubLimeText
editor with google-font-to-fpm
repositoryread_google_font.py
file, search for package_name
lato
repository package namepackage_name = "fifthtry.github.io/inter" name = "inter"
package_name = "fifthtry.github.io/lato" name = "lato"
read_google_font.py
file on command promptpython3 read_google_font.py
google-font-to-fpm
repository into SubLimeText
editorFPM.ftd
file and paste it to your repositorystatic
folder and paste it to your repositoryfpm build
on your repositoryGitHub