scour
trufont
scour | trufont | |
---|---|---|
5 | 2 | |
738 | 465 | |
0.8% | -0.2% | |
0.0 | 1.6 | |
10 months ago | 11 months ago | |
Python | Python | |
Apache License 2.0 | 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.
scour
-
Is it possible to save multiple files as optimized SVGs at once?
You could install the optimizer Inkscape uses internally and process your files with a super simple shell script. When reading the inkscape command line help, it does not seem to offer any option to export optimized SVGs from there
-
Convert pdf to optimized SVG from command line [Help]
Inkscape uses Scour under the hood for optimized SVG export.
-
Batch convert svg icons into a symbol set?
First make sure all your icons are saved as 'Optimized SVG' to remove Inkscape specific data and unnecessary id-attributes. Inkscape uses 'Scour' for this under the hood, so you can just use that directly to convert your files from the command line. I recommend the options --strip-xml-prolog --remove-metadata --enable-id-stripping --renderer-workaround. Now you only need to replace the outermost ... with ... for each file and remove all attributes on it, except width, height viewBox and preserveAspectRatio. Since we've stripped the XML-declaration with Scour, simply concatenate all files, wrap the result in a new element and lastly give your symbols unique ids and make sure all remaining referenced ids are unique between symbols.
-
Open Source Favicon Generation & Optimisation in 2022
The script optimised the SVG using Scour. This removes some metadata and also shortens IDs as well as strip out comments. For the PNG files we used OptiPNG on the maximum optimisation setting. This can be slow on larger files, but for favicons should not take long. Here’s the before and after comparison of files sizes for a particular favicon, using the script:
-
Where to start?
I also recommend Inkscape, it also has scour built-in to it. When saving a SVG select the option "optimized SVG" which will give you options to pass to scour to lower the amount of markup there is. You can then do some hand editing after this to further remove any markup you don't want.
trufont
-
Converting .CFF format to .TTF
It works for sure - and quite well. I teach my students on FontForge and they prepare good quality CFF and TTF fonts. Personally I work with FontLab 8. But sometimes I use also FontForge and even TruFont. So, for the conversion you can use also TruFont (https://github.com/trufont/trufont).
-
What do folks think about such fragmentation when it comes to linux in general
The one thing I've noticed as I've moved more and more to FLOSS solutions is the extent to which everything is made with developers as end users in mind. Like one totally ubiquitous thing is describing an application substantially or primarily by the tools used to create it. One example that stuck in my mind is trufont, which is described as
What are some alternatives?
GimelStudio - Non-destructive, node based 2D image editor with an API for custom nodes
Image2CAD - An application to translate raster image of CAD drawing sheet to a user editable DXF format.
svg.py - 🎨 Type-safe and powerful Python library to generate SVG files
gerbolyze - Directly render SVG overlays into Gerber and Excellon files
Im2Vec - [CVPR 2021 Oral] Im2Vec Synthesizing Vector Graphics without Vector Supervision
apysc - apysc is a Python frontend library to create html and js file, that has ActionScript 3 (as3)-like interface.
recursive-code-config - Customize your own version of Recursive for code. Build your own, or find the built fonts in releases within the main Recursive repo.
occult - vpype plug-in to remove occulted lines in SVG files
kanjivg - Kanji vector graphics
svg-experiments - ✒️ A gallery of experiments with Scalable Vector Graphics (SVG) and interactive visualizations.
vpype - The Swiss-Army-knife command-line tool for plotter vector graphics.