#fonttools guide
- install python in System
- install packet - pip install fonttools
- pyftsubset font-original.ttf --output-file=font-result.woff --unicodes-file=codes.txt
- Convert result file into woff and woff2
- install converter to woff - npm i -g ttf2woff
- install converter to worff2 - npm i -g ttf2woff2
- ttf2woff font-result.ttf font-converted.woff
- cat font-result.ttf | ttf2woff2 >> font-converted.woff2
- include in css
@font-face {
font-family: 'myfont';
src: url(font-converted.woff2) format('woff2'), url(font-converted.woff) format('woff');
font-weight: normal;
font-style: normal
font-display: swap;
}