fonttools
django-compressor
Our great sponsors
fonttools | django-compressor | |
---|---|---|
17 | 6 | |
4,046 | 2,753 | |
1.5% | 0.4% | |
9.9 | 6.6 | |
6 days ago | 12 days ago | |
Python | Python | |
MIT License | GNU General Public License v3.0 or later |
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]
-
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.
django-compressor
-
Why bother ?
In general, you can use almost any plain JS library by simply loading it in your view template. For forms specifically, you can write custom widgets and define dependencies to libraries via form assets. django-compressor might be worth a look if you go heavy on this.
-
I wrote a filter for Django Compressor that removes unused CSS classes and makes your СSS files much smaller
Idk, it depends on how much you care about the page loading time. Even without the PurgeCSS filter, I would recommend the Django Compressor app. I use it on all my websites. It automatically merges your css/js files and minifies them (removes white spaces, comments, etc.). It also creates a unique name for the combined CSS so if you changed your CSS files, your users will always see the fresh version, not the cached by the browser one.
-
I made a website that helps you to find similar YouTube channels
django_compressor - for merging and minimizing css and js assets
-
what are 3 django packages everyone should know about?
django-compressor with django-libsass for auto sass compilation
-
A powerful library to minify-html for django
But isn't that what you have django-compressor for?
-
How I reduced Raveberry's transferred frontend code by 90%
The external dependencies were downloaded into the static/ folder containing all frontend assets using yarn and a package.json. Other than that, yarn was not used. Next I ran a bash script that removed all files I did not need, keeping the javascript, css and font files that should be served. In html, these files where directly included. I knew that loading many files is bad, so I used django-compressor to combine them into one big file. Conveniently, this tool also provided me with a way to compile scss.
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
django-pipeline - Pipeline is an asset packaging library for Django.
google-webfonts-helper - A Hassle-Free Way to Self-Host Google Fonts. Get eot, ttf, svg, woff and woff2 files + CSS snippets
webassets - Asset management for Python web development.
woff2
django-storages - https://django-storages.readthedocs.io/
raveberry - A multi-user music server with a focus on participation
jinja-assets-compressor - A Jinja extension (compatible with Flask and other frameworks) to compile and/or compress your assets.
npm
Flask-Assets - Flask webassets integration.
Montserrat
File Conveyor - File Conveyor is a daemon written in Python to detect, process and sync files. In particular, it's designed to sync files to CDNs. Amazon S3 and Rackspace Cloud Files, as well as any Origin Pull or (S)FTP Push CDN, are supported. Originally written for my bachelor thesis at Hasselt University in Belgium.