fonttools
purgecss
Our great sponsors
fonttools | purgecss | |
---|---|---|
17 | 51 | |
4,057 | 7,659 | |
1.8% | 0.5% | |
9.8 | 8.1 | |
9 days ago | 27 days ago | |
Python | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
fonttools
-
The new Google Fonts: find what you’re looking for
The tool parent and sibling comment listed allows you to do basic subsetting [1], and generates the formats you need. If you do this more often, it is of course useful to learn how to do this yourself. A commonly used tool is pyftsubset, part of fonttools [2]
[1]: https://fonts.google.com/knowledge/glossary/subsetting
[2]: https://github.com/fonttools/fonttools
-
How to properly rescale SVG files for using in OTF-SVG files?
I know fontforge doesn't support OTF-SVG, but I'm actually using it for creating OTF-SVG from scratch. Is anyone willing to help me with this issue? https://github.com/fonttools/fonttools/discussions/3229
-
How to properly rescale SVG files for using in OTF-SVG fonts?
I'm having this issue and maybe here someone can help me.. https://github.com/fonttools/fonttools/discussions/3229
-
Retro Pixel Font - A new font and the intro of how to make it
In short, I draw glyphs in png and use python to build fonts (by https://github.com/fonttools/fonttools ). I agreed on some rules and then everything became simple. No required professional font editer.
-
Is there a font manager that lets you display/search for fonts that use OpenType features (smcp, etc.)?
If you have FontTools successfully installed, there is also a bundled script that's similar to what justinpenner's code does, without the built-in directories; you can find it at https://github.com/fonttools/fonttools/blob/main/Snippets/layout-features.py
- I created a language for font design using FontForge
-
Self-Hosting Fonts - No more excuses
What I like the most is that you can also download google-fonts and convert them automatically. Webfont-Kit-Generator uses fonttools (written in Python), that's pretty cool too.
-
How much do custom fonts affect an app size?
A drawback to icon fonts is that by default, you are carrying all of the glyphs in an icon font along for the ride. You can mitigate that by using a tool like fonttools to strip out the unused font glyphs.
-
Variable TTF Fonts with Three Axes in one file - Wght, wdth, and ital
If you're interested in learning more about how variable fonts work, I can point you to all sorts of tools and other resources. For example, fontTools includes a command line tool called ttx that converts any standard font format (ttf/otf/ttc/otc/woff/woff2) to a human-readable XML text file. You can also inspect variable and static fonts easily with online tools like Wakamai Fondue and Samsa.
-
Montserrat cyrillic issues?
If you want to look inside a font file, you can use the ttx command line tool (included with fontTools) to convert binary fonts to human-readable XML format. You can also open them in a font editor like FontForge or Glyphs if you want a GUI, but font editors may not show you everything that's inside the file.
purgecss
-
Optimize CSS with SAT Solving
As a starting point, Tailwind used to use PurgeCSS [0] but I'm not sure what they use now.
[0] https://purgecss.com
-
How to load critical styles for a NextJs app
A similar question was already posted here but, I think looking at the raw html, we will be able to better determine the required css than what Purgecss does.
-
Frontend development roadmap
PurgeCss
-
How to speed up your web application
Webpack minifies JS and CSS files by default when we build them in production mode. But it does not remove useless styles or classes. For this, you can use libraries like https://purgecss.com/ Do not forget to check the dependency, connect only the functionality that you use.
-
Removing unused CSS in a Django template-based project
When I searched online I couldn't find an "industry standard" solution to this problem. What I ended up doing was using the popular tool PurgeCSS along with a quick Python script to generate the appropriate command. What the PurgeCSS tool does is search for all your HTML files, gather all the CSS classes used, and then "purge" all the unused ones from the CSS file. You just need to declare all the HTML files you have.
-
23 of the best Eleventy Themes (Starters) for 2023
Skeleventy gives you a rock-solid foundation to build fast and accessible static websites, with clean, understated design. Features include a minimal build pipeline with Laravel Mix, the Sass-powered utility class generator Gorko, Purge CSS, an HTML minifier, SEO-friendly page metadata, image lazy loading, responsive navigation, and an XML sitemap.
-
Reduce unused CSS / JS from a Django App
You could look into using PurgeCSS and its cli?
- Eliminating unused selectors from Sass
-
Workplaces for digital nomads: the frontend
Unable to get rid of unused styles. Importing components individually and setting styles in SASS can greatly simplify builds, but several common unused styles can't be deleted using PurgeCSS and analogues due to dynamic class names.
-
Does My Website Look Big in This? Six Tips to Lower your Page Weight
If you’re hand-crafting your CSS, using only the exact classes you need, you’ll still probably find that your CSS file size grows as your site does. But it doesn’t need to grow too much — you can remove unused classes with tools like Purge CSS .
What are some alternatives?
fonttools-opentype-feature-freezer - OTFeatureFreezer GUI app and pyftfeatfreeze commandline tool in Python to permanently "apply" OpenType features to fonts, by remapping their Unicode assignments
vue-vite-starter-template - A single page app Vite starter template, created to easily bootstrap Vue.js 2 apps
google-webfonts-helper - A Hassle-Free Way to Self-Host Google Fonts. Get eot, ttf, svg, woff and woff2 files + CSS snippets
cssnano - A modular minifier, built on top of the PostCSS ecosystem.
woff2
PostCSS - Transforming styles with JS plugins
raveberry - A multi-user music server with a focus on participation
esbuild-loader - Webpack loader for esbuild: Speed up your build ⚡️
npm
snarkdown - :smirk_cat: A snarky 1kb Markdown parser written in JavaScript
Montserrat
purifycss - Remove unused CSS. Also works with single-page apps.